Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated legend docs to match custom box size change
  • Loading branch information
Alfie Hopkin authored Jan 25, 2019
commit 80f117df4587c3b489fe4380a8aa290222b1d4cd
3 changes: 1 addition & 2 deletions docs/configuration/legend.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ The legend label configuration is nested below the legend configuration using th
| `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.
| `filter` | `Function` | `null` | Filters legend items out of the legend. Receives 2 parameters, a [Legend Item](#legend-item-interface) and the chart data.
| `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).
| `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).
| `usePointStyle` | `Boolean` | `false` | Label box style will match corresponding point style (size is based on mimimum value between boxWidth and fontSize).

## Legend Item Interface

Expand Down