Skip to content

Commit

Permalink
Updated legend docs to match custom box size change
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfie Hopkin authored Jan 25, 2019
1 parent ceb5b20 commit 80f117d
Showing 1 changed file with 1 addition and 2 deletions.
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

0 comments on commit 80f117d

Please sign in to comment.