]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update pointstyle type and default value (#9168)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Wed, 26 May 2021 15:21:57 +0000 (17:21 +0200)
committerGitHub <noreply@github.com>
Wed, 26 May 2021 15:21:57 +0000 (11:21 -0400)
docs/charts/bubble.md
docs/configuration/legend.md

index ef29ad2a1c5c728debb9d02c95a5f45f8f9dc46d..94fb7ebb9ba464482c23e596c5d91ed729d6286a 100644 (file)
@@ -60,7 +60,7 @@ The bubble chart allows a number of properties to be specified for each dataset.
 | [`hitRadius`](#interactions) | `number` | Yes | Yes | `1`
 | [`label`](#general) | `string` | - | - | `undefined`
 | [`order`](#general) | `number` | - | - | `0`
-| [`pointStyle`](#styling) | `string` | Yes | Yes | `'circle'`
+| [`pointStyle`](#styling) | `string`\|`Image` | Yes | Yes | `'circle'`
 | [`rotation`](#styling) | `number` | Yes | Yes | `0`
 | [`radius`](#styling) | `number` | Yes | Yes | `3`
 
@@ -83,7 +83,7 @@ The style of each bubble can be controlled with the following properties:
 | `backgroundColor` | bubble background color.
 | `borderColor` | bubble border color.
 | `borderWidth` | bubble border width (in pixels).
-| `pointStyle` | bubble [shape style](../configuration/elements#point-styles).
+| `pointStyle` | bubble [shape style](../configuration/elements.md#point-styles).
 | `rotation` | bubble rotation (in degrees).
 | `radius` | bubble radius (in pixels).
 
index f708f30e0bc6c4d0c5d636d44b4e0ef68e93c418..771392803ac0fc2641c88b423cb2e43862ca5e00 100644 (file)
@@ -59,7 +59,7 @@ Namespace: `options.plugins.legend.labels`
 | `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.
 | `filter` | `function` | `null` | Filters legend items out of the legend. Receives 2 parameters, a [Legend Item](#legend-item-interface) and the chart data.
 | `sort` | `function` | `null` | Sorts legend items. Receives 3 parameters, two [Legend Items](#legend-item-interface) and the chart data.
-| `pointStyle` | | | If specified, this style of point is used for the legend. Only used if `usePointStyle` is true.
+| [`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.
 | `textAlign` | `string` | `'center'` | Horizontal alignment of the label text. Options are: `'left'`, `'right'` or `'center'`.
 | `usePointStyle` | `boolean` | `false` | Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).