labelStyle property

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)),
        )
    );
}

Implementation

final TextStyle? labelStyle;