AutoAdjustingDateTimeTickProvider class

Tick provider for date and time.

When determining the ticks for a given domain, the provider will use choose one of the internal tick providers appropriate to the size of the data's domain range. It does this in an attempt to ensure there are at least 3 ticks, before jumping to the next more fine grain provider. The 3 tick minimum is not a hard rule as some of the ticks might be eliminated because of collisions, but the data was within the targeted range.

Once a tick provider is chosen the selection of ticks is done by the child tick provider.

Constructors

AutoAdjustingDateTimeTickProvider.createDefault(DateTimeFactory dateTimeFactory)
Creates a default AutoAdjustingDateTimeTickProvider for day and time.
factory
AutoAdjustingDateTimeTickProvider.createWith(List<TimeRangeTickProvider> potentialTickProviders)
Creates AutoAdjustingDateTimeTickProvider with custom tick providers.
factory
AutoAdjustingDateTimeTickProvider.createWithoutTime(DateTimeFactory dateTimeFactory)
Creates a default AutoAdjustingDateTimeTickProvider for day only.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getTicks({required ChartContext? context, required GraphicsFactory graphicsFactory, required covariant DateTimeScale scale, required TickFormatter<DateTime> formatter, required Map<DateTime, String> formatterValueCache, required TickDrawStrategy<DateTime> tickDrawStrategy, required AxisOrientation? orientation, bool viewportExtensionEnabled = false, TickHint<DateTime>? tickHint}) List<Tick<DateTime>>
Generates a list of ticks for the given data which should not collide unless the range is not large enough.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

createDayTickProvider(DateTimeFactory dateTimeFactory) → TimeRangeTickProvider
createHourTickProvider(DateTimeFactory dateTimeFactory) → TimeRangeTickProvider
createMinuteTickProvider(DateTimeFactory dateTimeFactory) → TimeRangeTickProvider
createMonthTickProvider(DateTimeFactory dateTimeFactory) → TimeRangeTickProvider
createYearTickProvider(DateTimeFactory dateTimeFactory) → TimeRangeTickProvider