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:
Evert Timberg 2021-05-30 16:59:49 -04:00 committed by GitHub
parent 4ac38d033e
commit 599e23abfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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',
});