Skip to content

Commit 8fa073a

Browse files
authored
Fixes wrong and missing options and to bar element and dataset doc (#8404)
1 parent c280337 commit 8fa073a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/docs/charts/bar.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ the color of the bars is generally set this way.
9393
| [`indexAxis`](#general) | `string` | - | - | `'x'`
9494
| [`label`](#general) | `string` | - | - | `''`
9595
| [`order`](#general) | `number` | - | - | `0`
96-
| [`pointStyle`](../configuration/elements.md#point-styles) | `string`\|`Image` | Yes | False | `'circle'`
96+
| [`pointStyle`](../configuration/elements.md#point-styles) | `string`\|`Image` | Yes | - | `'circle'`
9797
| [`xAxisID`](#general) | `string` | - | - | first x axis
9898
| [`yAxisID`](#general) | `string` | - | - | first y axis
9999

@@ -120,7 +120,7 @@ The style of each bar can be controlled with the following properties:
120120
| [`borderSkipped`](#borderskipped) | The edge to skip when drawing bar.
121121
| [`borderWidth`](#borderwidth) | The bar border width (in pixels).
122122
| [`borderRadius`](#borderradius) | The bar border radius (in pixels).
123-
| `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}`
123+
| `pointStyle` | Style of the point for legend. [more...](../configuration/elements.md#point-styles)
124124

125125
All these values, if `undefined`, fallback to the associated [`elements.bar.*`](../configuration/elements.md#bar-configuration) options.
126126

docs/docs/configuration/elements.md

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Global bar options: `Chart.defaults.elements.bar`.
8080
| `borderWidth` | `number` | `0` | Bar stroke width.
8181
| `borderColor` | [`Color`](../general/colors.md) | `Chart.defaults.borderColor` | Bar stroke color.
8282
| `borderSkipped` | `string` | `'start'` | Skipped (excluded) border: `'start'`, `'end'`, `'bottom'`, `'left'`, `'top'` or `'right'`.
83+
| `borderRadius` | `number`\|`object` | `0` | The bar border radius (in pixels).
84+
| [`pointStyle`](#point-styles) | `string`\|`Image` | `'circle'` | Style of the point for legend.
8385

8486
## Arc Configuration
8587

0 commit comments

Comments
 (0)