Series.labels
configurationConfigures the series data labels.
series.labels
Objectseries.labels.background
String|FunctionThe background color of the labels.
series.labels.border
ObjectThe border of the labels.
series.labels.color
String|FunctionThe text color of the labels.
series.labels.font
String|FunctionThe font style of the labels.
Default: "12px Arial,Helvetica,sans-serif"
series.labels.format
String|FunctionThe format of the labels.
series.labels.margin
Number|ObjectThe margin of the labels.
Default: { left: 5, right: 5}
series.labels.padding
Number|ObjectThe padding of the labels.
Default: 0
series.labels.position
String|FunctionDefines the position of the labels.
"above"
The label is positioned at the top of the marker.
** Applicable for area and line series. **
"center"
The label is positioned at the point center.
** Applicable for column series only. **
"insideEnd"
The label is positioned inside, near the end of the point.
** Applicable for column series only. **
"insideBase"
The label is positioned inside, near the base of the bar.
** Applicable for column series. **
"outsideEnd"
The label is positioned outside, near the end of the bar.
** Applicable for column series only. Not applicable for stacked series. **
"right"
The label is positioned to the right of the marker.
** Applicable for area and line series. **
"below"
The label is positioned at the bottom of the marker.
** Applicable for area and line series. **
"left"
The label is positioned to the left of the marker.
** Applicable for area and line series. **
Default: "above"
series.labels.template
String | FunctionThe template which renders the chart series label.
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.
series.labels.visible
Boolean|FunctionThe visibility of the labels.
Default: false