majorGridLineColor property

Color majorGridLineColor
final

Specifies the color for major grid line of an axis.

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SfTheme(
        data: SfThemeData(
          chartThemeData: SfChartThemeData(
            majorGridLineColor: Colors.red
          )
        ),
        child: SfCartesianChart()
      ),
    )
  );
}

Implementation

final Color majorGridLineColor;