autoScrollingDeltaType property

DateTimeIntervalType autoScrollingDeltaType
final

Defines the type of delta value in the DateTime axis.

For example, if the autoScrollingDelta value is 5 and autoScrollingDeltaType is set to  DateTimeIntervalType.days, the data points with 5 days of values will be displayed.

The value can be set to years, months, days, hours, minutes, seconds and auto.

Defaults to DateTimeIntervalType.auto and the delta will be calculated automatically based on the data.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: DateTimeCategoryAxis(autoScrollingDeltaType: DateTimeIntervalType.months),
       )
   );
}

Implementation

final DateTimeIntervalType autoScrollingDeltaType;