labelStyle property Null safety

TextStyle labelStyle
final

Customizes the appearance of the axis labels.

Labels are the axis values placed at each interval. Axis labels are visible by default.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelStyle: TextStyle(color: Colors.black)),
       ));
}

This property is used to show or hide the axis labels.

Implementation

final TextStyle labelStyle;