Legend
Specifies the configuration options of the Chart legend (see examples).
Name | Type | Default | Description |
---|---|---|---|
align? |
|
Specifies how the legend aligns horizontally when | |
background? |
|
Specifies the background color of the legend. Accepts a valid CSS color string, including hex and rgb. | |
border? |
|
Specifies the border of the legend. | |
focusHighlight? |
|
Specifies the focus highlight configuration options of the Chart legend. | |
height? |
|
Specifies the height of the legend when | |
inactiveItems? |
|
Specifies the configuration of the Chart inactive legend items. | |
item? |
|
Specifies the configuration of the Chart legend item. | |
labels? |
|
Specifies the label configuration of the Chart legend. | |
margin? |
|
Specifies the margin of the Chart legend. A numeric value sets all paddings. | |
markers? |
|
Specifies the configuration of the Chart legend markers. | |
offsetX? |
|
Specifies the X offset of the Chart legend. The offset is relative to the default position of the legend.
For example, a value of | |
offsetY? |
|
Specifies the Y offset of the chart legend. The offset is relative to the current position of the legend.
For example, a value of | |
orientation? |
|
Specifies the orientation of the legend items. | |
padding? |
|
Specifies the padding of the Chart legend. A numeric value sets all paddings. | |
position? |
|
Specifies the positions of the Chart legend.
Setting the legend position to | |
reverse? |
|
Determines whether the legend items are reversed. | |
spacing? |
|
Specifies the distance (in pixels) between the legend items. Defaults to | |
title? |
|
Specifies the title of the Chart legend. By default, the Chart will not render a legend title. | |
visible? |
|
Determines whether the Chart displays the legend. By default, the Chart legend is visible. | |
width? |
|
Specifies the legend width when the |