labelStyle property

TextStyle labelStyle
getter/setter pair

Specifies the label text style.

The TextStyle is used to customize the chart title text style.

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

Implementation

TextStyle labelStyle;