dataLabels array

Option name Type Default
align String "center"
The alignment of the data label compared to the point. Can be one of "left", "center" or "right".
enabled Boolean false
Enable or disable the data labels.
formatter JS Function See
Callback JavaScript function to format the data label. Available data are:
  • this.percentage Stacked series and pies only. The point's percentage of the total.
  • this.point The point object. The point name, if defined, is available through this.point.name.
  • this.series: The series object. The series name is available through this.series.name.
  • this.total Stacked series only. The total value at this point's x value.
  • this.x: The y value.
  • this.y: The y value.
Default to "formatter"=>"js:function() {
return this.y;
}"
Note that if it is defined a "js:" should be put before the string.
rotation Number 0
Text rotation in degrees.
staggerLines
step
style array
Styles for the label
x Number 0
The x position offset of the label relative to the point.
y Number -6
-6 The y position offset of the label relative to the point.