2021-02-08 19:54:39 +01:00
### Common tick options to all axes
2020-11-16 21:05:29 +01:00
2021-02-19 17:44:05 +01:00
Namespace: `options.scales[scaleId].ticks`
2020-11-16 21:05:29 +01:00
| Name | Type | Scriptable | Default | Description
| ---- | ---- | :-------------------------------: | ------- | -----------
2021-04-18 11:49:22 +02:00
| `backdropColor` | [`Color` ](../../general/colors.md ) | Yes | `'rgba(255, 255, 255, 0.75)'` | Color of label backdrops.
2021-05-30 22:59:49 +02:00
| `backdropPadding` | [`Padding` ](../../general/padding.md ) | | `2` | Padding of label backdrop.
2021-04-04 20:19:07 +02:00
| `callback` | `function` | | | Returns the string representation of the tick value as it should be displayed on the chart. See [callback ](/axes/labelling.md#creating-custom-tick-formats ).
2020-11-16 21:05:29 +01:00
| `display` | `boolean` | | `true` | If true, show tick labels.
2021-04-04 20:19:07 +02:00
| `color` | [`Color` ](/general/colors.md ) | Yes | `Chart.defaults.color` | Color of ticks.
| `font` | `Font` | Yes | `Chart.defaults.font` | See [Fonts ](/general/fonts.md )
| `major` | `object` | | `{}` | [Major ticks configuration ](/axes/styling.md#major-tick-configuration ).
2021-03-18 08:57:56 +01:00
| `padding` | `number` | | `3` | Sets the offset of the tick labels from the axis
2021-04-18 11:49:22 +02:00
| `showLabelBackdrop` | `boolean` | Yes | `true` for radial scale, `false` otherwise | If true, draw a background behind the tick labels.
2021-04-04 20:19:07 +02:00
| `textStrokeColor` | [`Color` ](/general/colors.md ) | Yes | `` | The color of the stroke around the text.
2020-12-26 17:23:02 +01:00
| `textStrokeWidth` | `number` | Yes | `0` | Stroke width around the text.
2020-11-16 21:05:29 +01:00
| `z` | `number` | | `0` | z-index of tick layer. Useful when ticks are drawn on chart area. Values < = 0 are drawn under datasets, > 0 on top.