Legend.labels
configurationThe chart legend label configuration.
legend.labels
Objectlegend.labels.color
StringThe text color of the labels. Accepts a valid CSS color string, including hex and rgb.
Default: "black"
legend.labels.font
StringThe font style of the labels. Accepts a valid CSS color string, for example "20px 'Courier New'".
Default: "12px Arial,Helvetica,sans-serif"
legend.labels.margin
Number|ObjectThe margin of the labels. A numeric value will set all margins.
Default: 0
legend.labels.padding
Number|ObjectThe padding of the labels. A numeric value will set all paddings.
Default: 0
legend.labels.template
String|FunctionThe template which renders the labels.
The fields which can be used in the template are:
- text - the text the legend item.
- series - the data series.
- value - the point value. (only for donut and pie charts)
- percentage - the point value represented as a percentage value. Available only for donut, pie and 100% stacked charts.
The text can be split into multiple lines by using line feed characters ("\n").