majorGridLines property

MajorGridLines majorGridLines
final

Customizes the appearance of the major grid lines.

Major grids are the lines drawn on the plot area at all the major intervals in an axis. Major grid lines are visible by default.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(majorGridLines: MajorGridLines(width: 2)),
       )
   );
}

Implementation

final MajorGridLines majorGridLines;