]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
default values for element background and border color were wrong (#8156)
authorLeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com>
Fri, 11 Dec 2020 15:52:54 +0000 (16:52 +0100)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 15:52:54 +0000 (10:52 -0500)
docs/docs/configuration/elements.md

index 1e65549309f2e0ddcbafe0f537211d5219b06ef4..1b4531670bbc0e852b2e15f447eb297fd09ba403 100644 (file)
@@ -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.