Dart Documentationorson_chartsTickSelector

TickSelector abstract class

The interface that must be implemented by a tick unit selector. A default implementation is provided (NumberTickSelector).

Subclasses

NumberTickSelector

Properties

final NumberFormat currentTickLabelFormat #

Returns the suggested number format for the current tick size.

final num currentTickSize #

Returns the current tick size (the current size is updated by calls to select(num), next() and previous()).

Methods

abstract bool next() #

Selects the next (higher) tick unit if there is one (in which case the method returns true), or returns false.

abstract bool previous() #

Selects the previous (lower) tick unit if there is one (in which case the method returns true), or returns false.

abstract num select(num reference) #

Selects a tick unit that is close to the supplied reference data value.