labelStyle property

ChartTextStyle 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: ChartTextStyle(color: Colors.black)),
       ));
}

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

Implementation

final ChartTextStyle labelStyle