Interface: TickOptions

Properties

backdropColor

backdropColor: Scriptable<Color, ScriptableScaleContext>

Color of label backdrops.

default ‘rgba(255, 255, 255, 0.75)’

Defined in: index.esm.d.ts:2701TickOptions - 图1 (opens new window)


backdropPadding

backdropPadding: number | ChartArea

Padding of tick backdrop.

default 2

Defined in: index.esm.d.ts:2706TickOptions - 图2 (opens new window)


callback

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

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 | number

Parameters:

NameType
tickValuestring | number
indexnumber
ticksTick[]

Returns: string | number

Defined in: index.esm.d.ts:2711TickOptions - 图3 (opens new window)

Defined in: index.esm.d.ts:2711TickOptions - 图4 (opens new window)


color

color: Scriptable<Color, ScriptableScaleContext>

Color of tick

see Defaults.color

Defined in: index.esm.d.ts:2721TickOptions - 图5 (opens new window)


display

display: boolean

If true, show tick labels.

default true

Defined in: index.esm.d.ts:2716TickOptions - 图6 (opens new window)


font

font: Scriptable<FontSpec, ScriptableScaleContext>

see Fonts

Defined in: index.esm.d.ts:2725TickOptions - 图7 (opens new window)


major

major: object

Type declaration:

NameTypeDescription
enabledbooleanIf 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:2751TickOptions - 图8 (opens new window)


padding

padding: number

Sets the offset of the tick labels from the axis

Defined in: index.esm.d.ts:2729TickOptions - 图9 (opens new window)


showLabelBackdrop

showLabelBackdrop: Scriptable<boolean, ScriptableScaleContext>

If true, draw a background behind the tick labels.

default false

Defined in: index.esm.d.ts:2734TickOptions - 图10 (opens new window)


textStrokeColor

textStrokeColor: Scriptable<Color, ScriptableScaleContext>

The color of the stroke around the text.

default undefined

Defined in: index.esm.d.ts:2739TickOptions - 图11 (opens new window)


textStrokeWidth

textStrokeWidth: Scriptable<number, ScriptableScaleContext>

Stroke width around the text.

default 0

Defined in: index.esm.d.ts:2744TickOptions - 图12 (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:2749TickOptions - 图13 (opens new window)