# Interface: TickOptions

# Properties

# callback

callback: (tickValue: string | number, index: number, ticks: Tick[]) => string

Returns the string representation of the tick value as it should be displayed on the chart. See callback.

# Type declaration:

▸ (tickValue: string | number, index: number, ticks: Tick[]): string

# Parameters:

Name Type
tickValue string | number
index number
ticks Tick[]

Returns: string

Defined in: index.esm.d.ts:2630 (opens new window)

Defined in: index.esm.d.ts:2630 (opens new window)

# color

color: Scriptable<Color, ScriptableScaleContext>

Color of tick

see Defaults.color

Defined in: index.esm.d.ts:2640 (opens new window)

# display

display: boolean

If true, show tick labels.

default true

Defined in: index.esm.d.ts:2635 (opens new window)

# font

font: Scriptable<FontSpec, ScriptableScaleContext>

see Fonts

Defined in: index.esm.d.ts:2644 (opens new window)

# major

major: object

# Type declaration:

Name Type Description
enabled boolean If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. default false

Defined in: index.esm.d.ts:2665 (opens new window)

# padding

padding: number

Sets the offset of the tick labels from the axis

Defined in: index.esm.d.ts:2648 (opens new window)

# textStrokeColor

textStrokeColor: Scriptable<Color, ScriptableScaleContext>

The color of the stroke around the text.

default undefined

Defined in: index.esm.d.ts:2653 (opens new window)

# textStrokeWidth

textStrokeWidth: Scriptable<number, ScriptableScaleContext>

Stroke width around the text.

default 0

Defined in: index.esm.d.ts:2658 (opens new window)

# z

z: number

z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.

default 0

Defined in: index.esm.d.ts:2663 (opens new window)