fontStyle property
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;