createTickProvider method

  1. @override
AutoAdjustingDateTimeTickProvider createTickProvider(
  1. ChartContext context
)
override

Creates a TickProviderSpec that dynamically chooses ticks based on the extents of the data, limited to day increments.

increments specify the number of day increments that can be chosen from when searching for the appropriate tick intervals.

Implementation

@override
AutoAdjustingDateTimeTickProvider createTickProvider(ChartContext context) =>
    AutoAdjustingDateTimeTickProvider.createWith([
      TimeRangeTickProviderImpl(
        DayTimeStepper(
          context.dateTimeFactory,
          allowedTickIncrements: increments,
        ),
      ),
    ]);