PivotChartDataLabelModel

23 Sep 20251 minute to read

Interface for a class PivotChartDataLabel

Properties

angle number

Allows to specify the rotation angle to data label.

border PivotChartBorderModel

Allows to set the border to data labels.

connectorStyle PivotChartConnectorStyleModel

Allows custom connector of the pie, funnel, pyramid and doughnut chart data label.

enableRotation boolean

Allows to set whether rotation to data label is enable or not.

fill string

Allows to set the background color of the data label accepts value in hex and rgba as a valid CSS color string.

font PivotChartFontModel

Allows to customize the font of data labels.

position AccumulationLabelPosition

Allows to specify the position of the data label. They are,

  • Outside: Positions the label outside the point.
  • Inside: Positions the label on top of the point.

rx number

Allows to set the roundedCornerX for the data label. It requires border values not to be null.

ry number

Allows to set the roundedCornerY for the data label. It requires border values not to be null.

template string|Function

Allows custom template to show the data label. Use ${point.x} and ${point.y} as a placeholder
text to display the corresponding data point.

visible boolean

Allows to set the visibility of data label to the series renders.