mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 04:09:08 +02:00
Tick backdrop padding is not scriptable (#9191)
* Tick backdrop padding is not scriptable * Remove unneeded change * Update _scriptable for callback
This commit is contained in:
parent
4ac38d033e
commit
599e23abfd
@ -5,7 +5,7 @@ Namespace: `options.scales[scaleId].ticks`
|
||||
| Name | Type | Scriptable | Default | Description
|
||||
| ---- | ---- | :-------------------------------: | ------- | -----------
|
||||
| `backdropColor` | [`Color`](../../general/colors.md) | Yes | `'rgba(255, 255, 255, 0.75)'` | Color of label backdrops.
|
||||
| `backdropPadding` | [`Padding`](../../general/padding.md) | Yes | `2` | Padding of label backdrop.
|
||||
| `backdropPadding` | [`Padding`](../../general/padding.md) | | `2` | Padding of label backdrop.
|
||||
| `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).
|
||||
| `display` | `boolean` | | `true` | If true, show tick labels.
|
||||
| `color` | [`Color`](/general/colors.md) | Yes | `Chart.defaults.color` | Color of ticks.
|
||||
|
@ -92,3 +92,8 @@ defaults.describe('scale', {
|
||||
defaults.describe('scales', {
|
||||
_fallback: 'scale',
|
||||
});
|
||||
|
||||
defaults.describe('scale.ticks', {
|
||||
_scriptable: (name) => name !== 'backdropPadding' && name !== 'callback',
|
||||
_indexable: (name) => name !== 'backdropPadding',
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user