fontFamily property

  1. @override
String fontFamily
final

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;