Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tick backdrop padding is not scriptable #9191

Merged
merged 3 commits into from May 30, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/axes/_common_ticks.md
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions src/core/core.scale.defaults.js
Expand Up @@ -92,3 +92,8 @@ defaults.describe('scale', {
defaults.describe('scales', {
_fallback: 'scale',
});

defaults.describe('scale.ticks', {
_scriptable: (name) => name !== 'backdropPadding',
_indexable: (name) => name !== 'backdropPadding',
});
2 changes: 1 addition & 1 deletion src/scales/scale.radialLinear.js
Expand Up @@ -635,5 +635,5 @@ RadialLinearScale.defaultRoutes = {
RadialLinearScale.descriptors = {
angleLines: {
_fallback: 'grid'
}
},
etimberg marked this conversation as resolved.
Show resolved Hide resolved
};