You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/legend.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ The legend configuration is passed into the `options.legend` namespace. The glob
9
9
| ---- | ---- | ------- | -----------
10
10
| `display` | `boolean` | `true` | Is the legend shown?
11
11
| `position` | `string` | `'top'` | Position of the legend. [more...](#position)
12
+
| `align` | `string` | `'center'` | Alignment of the legend. [more...](#align)
12
13
| `fullWidth` | `boolean` | `true` | Marks that this box should take the full width of the canvas (pushing down other boxes). This is unlikely to need to be changed in day-to-day use.
13
14
| `onClick` | `function` | | A callback that is called when a click event is registered on a label item.
14
15
| `onHover` | `function` | | A callback that is called when a 'mousemove' event is registered on top of a label item.
@@ -23,6 +24,14 @@ Position of the legend. Options are:
23
24
*`'bottom'`
24
25
*`'right'`
25
26
27
+
## Align
28
+
Alignment of the legend. Options are:
29
+
*`'start'`
30
+
*`'center'`
31
+
*`'end'`
32
+
33
+
Defaults to `'center'` for unrecognized values.
34
+
26
35
## Legend Label Configuration
27
36
28
37
The legend label configuration is nested below the legend configuration using the `labels` key.
0 commit comments