Legend
configurationThe chart legend configuration options.
legend
Objectlegend.background
StringThe background color of the legend. Any valid CSS color string will work here, including hex and rgb.
Default: "white"
legend.border
ObjectThe border of the legend.
legend.inactiveItems
ObjectConfigures the legend inactive items.
legend.item
ObjectThe configuration of the Chart legend item.
To override the marker configuration of individual series, use the series.legendItem settings of the series.
legend.labels
ObjectConfigures the legend labels.
legend.margin
Number | ObjectThe margin of the legend.
Default: 10
legend.offsetX
NumberThe X offset from its position. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels to the right of it's initial position. A negative value will move the legend to the left of the current position.
Default: 0
legend.offsetY
NumberThe Y offset from its position. The offset is relative to the current position of the legend. For instance, a value of 20 will move the legend 20 pixels down from it's initial position. A negative value will move the legend upwards from the current position.
Default: 0
legend.padding
Number | ObjectThe padding of the legend.
Default: 5
legend.position
Stringlegend.reverse
BooleanIf set to true the legend items will be reversed.
Available in versions 2013.3.1306 and later.
Default: false
legend.title
ObjectThe legend title configuration options or text.
legend.visible
BooleanThe visibility of the legend.
Default: false