color property
To set the color to chart text
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: CategoryAxis(
labelStyle: ChartTextStyle(color: Colors.black),
));
}
Implementation
@override
final Color? color;