SeriesDefaults.labels
configurationConfigures the series data labels.
seriesDefaults.labels
ObjectseriesDefaults.labels.ariaTemplate
String | FunctionThe template which renders the ARIA label for the series labels.
The fields which can be used in the template are:
- category - the category name. Available for area, bar, column, bubble, donut, line and pie series.
- dataItem - the original data item used to construct the point. Will be null if binding to array.
- percentage - the point value represented as a percentage value. Available only for 100% stacked charts.
- series - the data series
- value - the point value. Can be a number or object containing each bound field.
The background color of the labels. Any valid CSS color string will work here, including hex and rgb.
The border of the labels.
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
The font style of the labels. labels
Default: "12px Arial,Helvetica,sans-serif"
The format of the labels.
seriesDefaults.labels.margin
Number|ObjectThe margin of the labels.
Default: 0
seriesDefaults.labels.padding
Number|ObjectThe padding of the labels.
Default: 0
seriesDefaults.labels.template
String | FunctionThe label template. Template variables:
- value - the point value
- category - the category name
- series - the data series
- dataItem - the original data item used to construct the point. Will be null if binding to array.
The visibility of the labels.
Default: false