seriesDefaults.labelsObject
Configures the series data labels.
seriesDefaults.labels.backgroundString
The background color of the labels. Any valid CSS color string will work here, including hex and rgb.
seriesDefaults.labels.borderObject
The border of the labels.
seriesDefaults.labels.border.colorString
(default: "black")
The color of the border.
seriesDefaults.labels.border.dashTypeString
(default: "solid")
The dash type of the border.
"solid"
Specifies a solid line.
"dot"
Specifies a line consisting of dots.
"dash"
Specifies a line consisting of dashes.
"longDash"
Specifies a line consisting of a repeating pattern of long-dash.
"dashDot"
Specifies a line consisting of a repeating pattern of dash-dot.
"longDashDot"
Specifies a line consisting of a repeating pattern of long-dash-dot.
"longDashDotDot"
Specifies a line consisting of a repeating pattern of long-dash-dot-dot.
seriesDefaults.labels.border.widthNumber
(default: 0)
The width of the border.
seriesDefaults.labels.colorString
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
seriesDefaults.labels.fontString
(default: "12px Arial,Helvetica,sans-serif")
The font style of the labels. labels
seriesDefaults.labels.formatString
seriesDefaults.labels.marginNumber|Object
(default: 0)
The margin of the labels.
seriesDefaults.labels.paddingNumber|Object
(default: 0)
The padding of the labels.
Example
// sets the top, right, bottom and left padding to 3px.
padding: 3
// sets the top and left padding to 1px
// padding right and bottom are with 0px (by default)
padding: { top: 1, left: 1 }
seriesDefaults.labels.templateString | Function
The 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.
seriesDefaults.labels.visibleBoolean
(default: false)
The visibility of the labels.