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

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:
        DateTimeAxis(autoScrollingDeltaType: DateTimeIntervalType.months),
       )
   );
}

Implementation

// 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.
///
/// ```dart
/// Widget build(BuildContext context) {
///    return Container(
///        child: SfCartesianChart(
///           primaryXAxis:
///         DateTimeAxis(autoScrollingDeltaType: DateTimeIntervalType.months),
///        )
///    );
/// }
/// ```
final DateTimeIntervalType autoScrollingDeltaType;