rangePadding property

ChartRangePadding rangePadding
final

Padding for minimum and maximum values in an axis.

Various types of range padding such as round, none, normal, and additional can be applied.

Defaults to ChartRangePadding.auto.

Also refer ChartRangePadding.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(rangePadding:  ChartRangePadding.round),
       )
   );
}

Implementation

final ChartRangePadding rangePadding;