Chart Component - DataLabel

30 Sep 20261 minute to read

The DataLabel module is used to render data labels for data points.

Methods

calculateStackLabel

This method is responsible for positioning the cumulative sum of stacking column series.

Parameter Type Description
positivePoints { [xValue: string]: [Points](./points) } The positive points of the stacking series.
negativePoints { [xValue: string]: [Points](./points) } The negative points of the stacking series.
zeroPoints { [xValue: string]: [Points](./points) } The zero points of the stacking series.
seriesInGroup Series[] The array of series in group.
stackLabelGroup Element The stack label group element.
stackLabelIndex number The index of the stack label.

Returns number

renderStackLabels

Renders the stack labels for the chart.
This method is responsible for displaying cumulative total values on stacked chart segments.

Returns void