fontStyle property

  1. @override
FontStyle fontStyle
final

To set the font style to chart text

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
              primaryXAxis: CategoryAxis(
                     labelStyle: ChartTextStyle(fontStyle: FontStyle.normal),
                 ));
}

Implementation

@override
final FontStyle fontStyle;