maximumLabels property

int maximumLabels
final

The maximum number of labels to be displayed in an axis in 100 logical pixels.

Defaults to 3.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(maximumLabels: 4),
       ));
}

Implementation

final int maximumLabels;