Skip to content

Commit f486610

Browse files
authored
Update pointstyle type and default value (#9168)
1 parent 140cbb4 commit f486610

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/charts/bubble.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The bubble chart allows a number of properties to be specified for each dataset.
6060
| [`hitRadius`](#interactions) | `number` | Yes | Yes | `1`
6161
| [`label`](#general) | `string` | - | - | `undefined`
6262
| [`order`](#general) | `number` | - | - | `0`
63-
| [`pointStyle`](#styling) | `string` | Yes | Yes | `'circle'`
63+
| [`pointStyle`](#styling) | `string`\|`Image` | Yes | Yes | `'circle'`
6464
| [`rotation`](#styling) | `number` | Yes | Yes | `0`
6565
| [`radius`](#styling) | `number` | Yes | Yes | `3`
6666

@@ -83,7 +83,7 @@ The style of each bubble can be controlled with the following properties:
8383
| `backgroundColor` | bubble background color.
8484
| `borderColor` | bubble border color.
8585
| `borderWidth` | bubble border width (in pixels).
86-
| `pointStyle` | bubble [shape style](../configuration/elements#point-styles).
86+
| `pointStyle` | bubble [shape style](../configuration/elements.md#point-styles).
8787
| `rotation` | bubble rotation (in degrees).
8888
| `radius` | bubble radius (in pixels).
8989

docs/configuration/legend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Namespace: `options.plugins.legend.labels`
5959
| `generateLabels` | `function` | | Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See [Legend Item](#legend-item-interface) for details.
6060
| `filter` | `function` | `null` | Filters legend items out of the legend. Receives 2 parameters, a [Legend Item](#legend-item-interface) and the chart data.
6161
| `sort` | `function` | `null` | Sorts legend items. Receives 3 parameters, two [Legend Items](#legend-item-interface) and the chart data.
62-
| `pointStyle` | | | If specified, this style of point is used for the legend. Only used if `usePointStyle` is true.
62+
| [`pointStyle`](elements.md#point-styles) | `string`\|`Image` | `'circle'` | If specified, this style of point is used for the legend. Only used if `usePointStyle` is true.
6363
| `textAlign` | `string` | `'center'` | Horizontal alignment of the label text. Options are: `'left'`, `'right'` or `'center'`.
6464
| `usePointStyle` | `boolean` | `false` | Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).
6565

0 commit comments

Comments
 (0)