Interface: TickOptions
Color of label backdrops.
‘rgba(255, 255, 255, 0.75)’
Defined in
backdropPadding
• backdropPadding: number
|
Padding of tick backdrop.
default
2
Defined in
color
• color: <Color, >
Color of tick
see
Defaults.color
Defined in
display
• display: boolean
If true, show tick labels.
Defined in
index.esm.d.ts:2847 (opens new window)
• font: <FontSpec, >
see Fonts
Defined in
major
• major: Object
Type declaration
Defined in
padding
• padding:
Sets the offset of the tick labels from the axis
Defined in
index.esm.d.ts:2860 (opens new window)
showLabelBackdrop
• showLabelBackdrop: Scriptable<boolean
, >
If true, draw a background behind the tick labels.
default
false
Defined in
The color of the stroke around the text.
default
undefined
Defined in
textStrokeWidth
• textStrokeWidth: <number
, ScriptableScaleContext>
Stroke width around the text.
default
0
Defined in
index.esm.d.ts:2875 (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
Methods
callback
▸ callback(tickValue
, index
, ): string
| number
Returns the string representation of the tick value as it should be displayed on the chart. See callback.
Parameters
Name | Type |
---|---|
tickValue | string | number |
index | number |
ticks | [] |