From: stockiNail Date: Tue, 9 Feb 2021 20:43:52 +0000 (+0100) Subject: Fixes wrong and missing options and to bar element and dataset doc (#8404) X-Git-Tag: v3.0.0-beta.11~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fa073a0d33d16fe45e36e67fd7a7c9be76be4ba;p=thirdparty%2FChart.js.git Fixes wrong and missing options and to bar element and dataset doc (#8404) --- diff --git a/docs/docs/charts/bar.mdx b/docs/docs/charts/bar.mdx index 142e752be..1b65ab8fd 100644 --- a/docs/docs/charts/bar.mdx +++ b/docs/docs/charts/bar.mdx @@ -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. diff --git a/docs/docs/configuration/elements.md b/docs/docs/configuration/elements.md index ff2b1684f..781a4e592 100644 --- a/docs/docs/configuration/elements.md +++ b/docs/docs/configuration/elements.md @@ -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