fontFamily property
To set the font family to chart text
Defaults to Roboto
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: CategoryAxis(
labelStyle: ChartTextStyle(fontFamily: 'Roboto'),
));
}
Implementation
@override
final String fontFamily;