Skip to content

Commit 80f117d

Browse files
author
Alfie Hopkin
authored
Updated legend docs to match custom box size change
1 parent ceb5b20 commit 80f117d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/configuration/legend.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ The legend label configuration is nested below the legend configuration using th
3636
| `padding` | `Number` | `10` | Padding between rows of colored boxes.
3737
| `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.
3838
| `filter` | `Function` | `null` | Filters legend items out of the legend. Receives 2 parameters, a [Legend Item](#legend-item-interface) and the chart data.
39-
| `usePointStyle` | `Boolean` | `false` | Label style will match corresponding point style (size is based on fontSize if pointSize is not provided, boxWidth is not used in this case).
40-
| `pointSize` | `Number` | `null` | Used only when usePointStyle is true. Independently change the size of the legend box (if not given, size will be based on fontSize).
39+
| `usePointStyle` | `Boolean` | `false` | Label box style will match corresponding point style (size is based on mimimum value between boxWidth and fontSize).
4140

4241
## Legend Item Interface
4342

0 commit comments

Comments
 (0)