Circular3DDataLabel
12 Sep 20254 minutes to read
The ‘Circular3DDataLabel’ module used to render dataLabel in circular 3D charts.
Methods
calculateTemplateLabelSize
Calculates the size of a data label template for a specific data point in a 3D series.
| Parameter | Type | Description |
|---|---|---|
| parentElement | HTMLElement |
The parent HTML element containing the data label template. |
| childElement | HTMLElement |
The child HTML element representing the data label template. |
| point | Circular3DPoints |
The data point for which the data label template size is calculated. |
| series | Circular3DSeries |
The circular 3D series to which the data point belongs. |
| dataLabel | Circular3DDataLabelSettingsModel |
The style for data labels. |
| redraw | boolean |
Indicates whether the template should be redrawn. |
| location | Circular3DLocation |
The location values for the data label. |
| isReactCallback (optional) | boolean |
Indicates whether the callback is associated with React. |
Returns void
createDataLabelTemplate
Creates a data label template for a specific data point in a 3D series.
| Parameter | Type | Description |
|---|---|---|
| parentElement | HTMLElement |
The parent HTML element to which the data label template is attached. |
| series | Circular3DSeries |
The 3D series to which the data point belongs. |
| dataLabel | Circular3DDataLabelSettingsModel |
The style settings for data labels. |
| point | Circular3DPoints |
The data point for which the data label template is created. |
| data | Circular3DTextRenderEventArgs |
The text render event arguments. |
| labelIndex | number |
The index of the data label. |
| redraw | boolean |
Indicates whether the template should be redrawn. |
| location | Circular3DLocation |
The location values for the data label. |
| chart | Circular3D |
The circular 3D chart instance. |
Returns void
draw3DDataLabel
Draws a 3D data label for a circular 3D series.
This method is responsible for drawing a 3D data label for a circular 3D series.
| Parameter | Type | Description |
|---|---|---|
| series | Circular3DSeries |
The Circular3DSeries to which the data label belongs. |
| pointIndex | number |
The index of the data label point in the series. |
| point | Circular3DPoints |
The Circular3DPoints representing the 3D point of the data label. |
| chart | Circular3D |
The circular 3D chart instance. |
Returns void
renderDataLabel
Renders data labels for a circular 3D series on the given chart.
| Parameter | Type | Description |
|---|---|---|
| series | Circular3DSeries |
The circular 3D series for which data labels are to be rendered. |
| chart | Circular3D |
The circular 3D chart instance. |
Returns void