From: LeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com> Date: Fri, 11 Dec 2020 15:52:54 +0000 (+0100) Subject: default values for element background and border color were wrong (#8156) X-Git-Tag: v3.0.0-beta.8~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3953acf1edb80c3e99c53ea22634304f3c31afa;p=thirdparty%2FChart.js.git default values for element background and border color were wrong (#8156) --- diff --git a/docs/docs/configuration/elements.md b/docs/docs/configuration/elements.md index 1e6554930..1b4531670 100644 --- a/docs/docs/configuration/elements.md +++ b/docs/docs/configuration/elements.md @@ -23,9 +23,9 @@ Global point options: `Chart.defaults.elements.point`. | `radius` | `number` | `3` | Point radius. | [`pointStyle`](#point-styles) | `string`\|`Image` | `'circle'` | Point style. | `rotation` | `number` | `0` | Point rotation (in degrees). -| `backgroundColor` | `Color` | `Chart.defaults.color` | Point fill color. +| `backgroundColor` | `Color` | `Chart.defaults.backgroundColor` | Point fill color. | `borderWidth` | `number` | `1` | Point stroke width. -| `borderColor` | `Color` | `Chart.defaults.color` | Point stroke color. +| `borderColor` | `Color` | `Chart.defaults.borderColor` | Point stroke color. | `hitRadius` | `number` | `1` | Extra radius added to point radius for hit detection. | `hoverRadius` | `number` | `4` | Point radius when hovered. | `hoverBorderWidth` | `number` | `1` | Stroke width when hovered. @@ -56,9 +56,9 @@ Global line options: `Chart.defaults.elements.line`. | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `tension` | `number` | `0` | Bézier curve tension (`0` for no Bézier curves). -| `backgroundColor` | `Color` | `Chart.defaults.color` | Line fill color. +| `backgroundColor` | `Color` | `Chart.defaults.backgroundColor` | Line fill color. | `borderWidth` | `number` | `3` | Line stroke width. -| `borderColor` | `Color` | `Chart.defaults.color` | Line stroke color. +| `borderColor` | `Color` | `Chart.defaults.borderColor` | Line stroke color. | `borderCapStyle` | `string` | `'butt'` | Line cap style. See [MDN](https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap). | `borderDash` | `number[]` | `[]` | Line dash. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash). | `borderDashOffset` | `number` | `0.0` | Line dash offset. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset). @@ -76,9 +76,9 @@ Global bar options: `Chart.defaults.elements.bar`. | Name | Type | Default | Description | ---- | ---- | ------- | ----------- -| `backgroundColor` | `Color` | `Chart.defaults.color` | Bar fill color. +| `backgroundColor` | `Color` | `Chart.defaults.backgroundColor` | Bar fill color. | `borderWidth` | `number` | `0` | Bar stroke width. -| `borderColor` | `Color` | `Chart.defaults.color` | Bar stroke color. +| `borderColor` | `Color` | `Chart.defaults.borderColor` | Bar stroke color. | `borderSkipped` | `string` | `'start'` | Skipped (excluded) border: `'start'`, `'end'`, `'bottom'`, `'left'`, `'top'` or `'right'`. ## Arc Configuration @@ -90,7 +90,7 @@ Global arc options: `Chart.defaults.elements.arc`. | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | `angle` - for polar only | `number` | `circumference / (arc count)` | Arc angle to cover. -| `backgroundColor` | `Color` | `Chart.defaults.color` | Arc fill color. +| `backgroundColor` | `Color` | `Chart.defaults.backgroundColor` | Arc fill color. | `borderAlign` | `string` | `'center'` | Arc stroke alignment. | `borderColor` | `Color` | `'#fff'` | Arc stroke color. | `borderWidth`| `number` | `2` | Arc stroke width.