]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Changes defaults in documentation, applied by PR 8657 (#8660)
authorstockiNail <stocki.nail@gmail.com>
Thu, 18 Mar 2021 07:57:56 +0000 (08:57 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Mar 2021 07:57:56 +0000 (09:57 +0200)
docs/docs/axes/_common_ticks.md
docs/docs/axes/styling.mdx

index c63b4ecc53f60e294ea7b917635b8f37c8ef6da7..fda7381cfb826f48a18d805665389fcad6ab373b 100644 (file)
@@ -9,7 +9,7 @@ Namespace: `options.scales[scaleId].ticks`
 | `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](./styling.mdx#major-tick-configuration).
-| `padding` | `number` | | `0` | Sets the offset of the tick labels from the axis
+| `padding` | `number` | | `3` | Sets the offset of the tick labels from the axis
 | `textStrokeColor` | [`Color`](../general/colors.md) | Yes | `` | The color of the stroke around the text.
 | `textStrokeWidth` | `number` | Yes | `0` | Stroke width around the text.
 | `z` | `number` | | `0` | z-index of tick layer. Useful when ticks are drawn on chart area. Values &lt;= 0 are drawn under datasets, &gt; 0 on top.
index e4f0bdf405168df255463391a1e69d08ebcb044b..5a98fe3fea349dc70f0d5c8dbb8aed835b71f884 100644 (file)
@@ -27,7 +27,7 @@ Namespace: `options.scales[scaleId].grid`, it defines options for the grid lines
 | `tickBorderDash` | `number[]` | | | | Length and spacing of the tick mark line. If not set, defaults to the grid line `borderDash` value.
 | `tickBorderDashOffset` | `number` | Yes | Yes |  | Offset for the line dash of the tick mark. If unset, defaults to the grid line `borderDashOffset` value
 | `tickColor` | [`Color`](../general/colors.md) | Yes | Yes | | Color of the tick line. If unset, defaults to the grid line color.
-| `tickLength` | `number` | | | `10` | Length in pixels that the grid lines will draw into the axis area.
+| `tickLength` | `number` | | | `8` | Length in pixels that the grid lines will draw into the axis area.
 | `tickWidth` | `number` | Yes | Yes | | Width of the tick mark in pixels. If unset, defaults to the grid line width.
 | `z` | `number` | | | `0` | z-index of gridline layer. Values &lt;= 0 are drawn under datasets, &gt; 0 on top.