createTickProvider method

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

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) {
  return AutoAdjustingDateTimeTickProvider.createWith([
    TimeRangeTickProviderImpl(DayTimeStepper(context.dateTimeFactory,
        allowedTickIncrements: increments))
  ]);
}