Optional values: Iterable<[string, unknown]> | Partial<EmptyTickStrategyProperties>Readonly cursorCursor formatter.
This controls the formatting used by:
TickStrategy.Axis.formatValue method of the Axis which uses this TickStrategy.undefined means to use default cursor formatting.
// Example value, custom cursor formatter
cursorFormatter: (value, range, locale) => value.toFixed(3)
Get cursor formatter of this NumericTickStrategy object.
FormattingFunction as set by user, or undefined to indicate that the default numeric cursor formatting is configured.
Set cursor formatter for this TickStrategy object.
This will override the date time formatting used by:
TickStrategy.Axis.formatValue method of the Axis which uses this TickStrategy. // Example syntax, custom cursor formatting.
Axis.setTickStrategy(AxisTickStrategies.Numeric, (ticks) => ticks
.setCursorFormatter((value, range, locale) =>
value.toFixed(3)
)
)
New NumericTickStrategy object.
FormattingFunction or undefined to use default numeric cursor formatting.
Axis Tick Strategy to prevent any and all automatic tick creation.
Still exposes way to configure cursor formatting of values along the Axis.
Axis tick strategy is selected with setTickStrategy method:
All configuration of automatically created ticks is done using the callback from
setTickStrategy, see example below for the idea:All available strategies for automatic Axis ticks creation can be referenced via AxisTickStrategies.