color property
Color of the major grid lines.
Defaults to null
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: NumericAxis(
majorGridLines: MajorGridLines(
color:Colors.red
)
),
)
);
}
Implementation
final Color? color;