Series.labels.to
configurationThe chart series to label configuration.
The chart displays the series to labels when the series.labels.visible option is set to
trueor when the series.labels.to.visible option is set totrue.
series.labels.to
Objectseries.labels.to.background
String|FunctionThe background color of the to labels. Accepts a valid CSS color string, including hex and rgb.
series.labels.to.border
ObjectThe border of the to labels.
series.labels.to.color
String|FunctionThe text color of the to labels. Accepts a valid CSS color string, including hex and rgb.
series.labels.to.font
String|FunctionThe font style of the to labels.
Default: "12px Arial,Helvetica,sans-serif"
series.labels.to.format
String|FunctionDefault: "{0}"
series.labels.to.margin
Number|ObjectThe margin of the to labels. A numeric value will set all margins.
Default: 5
series.labels.to.padding
Number|ObjectThe padding of the to labels. A numeric value will set all paddings.
Default: 0
series.labels.to.position
String|FunctionThe position of the to labels.
- "center" - the label is positioned at the point center.
- "insideBase" - the label is positioned inside, near the base of the bar.
- "insideEnd" - the label is positioned inside, near the end of the point.
- "outsideEnd" - the label is positioned outside, near the end of the point.
- "above" - the label is positioned at the top of the marker. Applicable for "rangeArea" and "verticalRangeArea" series.
- "below" - the label is positioned at the bottom of the marker. Applicable for "rangeArea" and "verticalRangeArea" series.
- "left" - the label is positioned to the left of the marker. Applicable for "rangeArea" and "verticalRangeArea" series.
- "right" - the label is positioned to the right of the marker. Applicable for "rangeArea" and "verticalRangeArea" series.
series.labels.to.template
String|FunctionThe template which renders the chart series to label.
The fields which can be used in the template are:
- category - the category name.
- dataItem - the original data item used to construct the point. Will be null if binding to array.
- series - the data series
- value - the point value. An object containing from and to values.
series.labels.to.visible
Boolean|FunctionIf set to true the chart will display the series to labels. By default chart series to labels are not displayed.
Default: false