]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
clarification that strikethrough uses same color as the label color (#8289)
authorLeeLenaleee <39033624+LeeLenaleee@users.noreply.github.com>
Sun, 10 Jan 2021 20:17:02 +0000 (21:17 +0100)
committerGitHub <noreply@github.com>
Sun, 10 Jan 2021 20:17:02 +0000 (15:17 -0500)
docs/docs/configuration/legend.md

index 4842626262687448e4947b77bd3a8bcf03c6d4e8..9d6b42ef68c67dd203e503de5ab2467e3958dcf7 100644 (file)
@@ -52,7 +52,7 @@ The legend label configuration is nested below the legend configuration using th
 | ---- | ---- | ------- | -----------
 | `boxWidth` | `number` | `40` | Width of coloured box.
 | `boxHeight` | `number` | `font.size` | Height of the coloured box.
-| `color` | [`Color`](../general/colors.md) | `Chart.defaults.color` | Color of label.
+| `color` | [`Color`](../general/colors.md) | `Chart.defaults.color` | Color of label and the strikethrough.
 | `font` | `Font` | `Chart.defaults.font` | See [Fonts](../general/fonts.md)
 | `padding` | `number` | `10` | Padding between rows of colored boxes.
 | `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.