multiLevelLabelStyle property Null safety

MultiLevelLabelStyle multiLevelLabelStyle
final

Customize the multi-level label’s border color, width, type, and text style such as color, font size, etc.

When the multi-level label’s width exceeds its respective segment, then the label will get trimmed and on tapping / hovering over the trimmed label, a tooltip will be shown.

Also refer multiLevelLabelFormatter.

Widget build(BuildContext context) {
   return Container(
     child: SfCartesianChart(
       primaryXAxis: NumericAxis(
         multiLevelLabelStyle: MultiLevelLabelStyle(
           borderWidth: 1,
           borderColor: Colors.black,
           borderType: MultiLevelBorderType.rectangle,
           textStyle: TextStyle(
             fontSize: 10,
             color: Colors.black,
           )
         )
       )
     )
   );
 }

Implementation

final MultiLevelLabelStyle multiLevelLabelStyle;