]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixes wrong and missing options and to bar element and dataset doc (#8404)
authorstockiNail <stocki.nail@gmail.com>
Tue, 9 Feb 2021 20:43:52 +0000 (21:43 +0100)
committerGitHub <noreply@github.com>
Tue, 9 Feb 2021 20:43:52 +0000 (22:43 +0200)
docs/docs/charts/bar.mdx
docs/docs/configuration/elements.md

index 142e752bef2c1f5b8d65a2a97bd166ed842cc5dc..1b65ab8fd9975e72ab0a69f6ada176008f010828 100644 (file)
@@ -93,7 +93,7 @@ the color of the bars is generally set this way.
 | [`indexAxis`](#general) | `string` | - | - | `'x'`
 | [`label`](#general) | `string` | - | - | `''`
 | [`order`](#general) | `number` | - | - | `0`
-| [`pointStyle`](../configuration/elements.md#point-styles) | `string`\|`Image` | Yes | False | `'circle'`
+| [`pointStyle`](../configuration/elements.md#point-styles) | `string`\|`Image` | Yes | - | `'circle'`
 | [`xAxisID`](#general) | `string` | - | - | first x axis
 | [`yAxisID`](#general) | `string` | - | - | first y axis
 
@@ -120,7 +120,7 @@ The style of each bar can be controlled with the following properties:
 | [`borderSkipped`](#borderskipped) | The edge to skip when drawing bar.
 | [`borderWidth`](#borderwidth) | The bar border width (in pixels).
 | [`borderRadius`](#borderradius) | The bar border radius (in pixels).
-| `clip` | How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. `0` = clip at chartArea. Clipping can also be configured per side: `clip: {left: 5, top: false, right: -2, bottom: 0}`
+| `pointStyle` | Style of the point for legend. [more...](../configuration/elements.md#point-styles)
 
 All these values, if `undefined`, fallback to the associated [`elements.bar.*`](../configuration/elements.md#bar-configuration) options.
 
index ff2b1684f44a9e3e40beddb100a98845d6dee2fe..781a4e5928b832d1a56325e00d2ea51315a70d40 100644 (file)
@@ -80,6 +80,8 @@ Global bar options: `Chart.defaults.elements.bar`.
 | `borderWidth` | `number` | `0` | Bar stroke width.
 | `borderColor` | [`Color`](../general/colors.md) | `Chart.defaults.borderColor` | Bar stroke color.
 | `borderSkipped` | `string` | `'start'` | Skipped (excluded) border: `'start'`, `'end'`, `'bottom'`, `'left'`, `'top'` or `'right'`.
+| `borderRadius` | `number`\|`object` | `0` | The bar border radius (in pixels).
+| [`pointStyle`](#point-styles) | `string`\|`Image` | `'circle'` | Style of the point for legend.
 
 ## Arc Configuration