Is the legend shown?
Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.
Height of the coloured box.
Padding between the color box and the text
Width of colored box.
Color of label
Filters legend items out of the legend. Receives 2 parameters, a Legend Item and the chart data
Font of label
Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See Legend Item for details.
Padding between rows of colored boxes.
Override point style for the legend. Only applies if usePointStyle is true
Sorts the legend items
Text alignment
Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).
Maximum height of the legend, in pixels
Maximum width of the legend, in pixels
A callback that is called when a click event is registered on a label item.
A callback that is called when a 'mousemove' event is registered on top of a label item
A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.
Position of the legend.
Legend will show datasets in reverse order.
true for rendering the legends from right to left.
This will force the text direction 'rtl' or 'ltr' on the canvas for rendering the legend, regardless of the css specified on the canvas
Generated using TypeDoc
Alignment of the legend.
'center'