ChartDataLabelTemplateProps

Represents the context data available for rendering a custom data label template in a chart.

Props

The following table outlines the props for the ChartDataLabelTemplateProps:

NameTypeDefaultDescription
label
string
-

The value to be displayed as a data label, mapped from the labelField in the series configuration.

pointIndex
number
-

The index of the data point within the series.

seriesIndex
number
-

The index of the series to which the data point belongs.

x
number
-

The X-coordinate of the data point in the chart.

y
number
-

The Y-coordinate of the data point in the chart.