DataLabel3D
12 Sep 20254 minutes to read
The DataLabel module is used to render data label for the data point.
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 | Chart3DPoint | 
      The data point for which the data label template size is calculated. | 
| series | Chart3DSeries | 
      The 3D series to which the data point belongs. | 
| dataLabel | Chart3DDataLabelSettingsModel | 
      The style for data labels. | 
| clip | Rect | 
      The rectangular clipping area. | 
| redraw | boolean | 
      Indicates whether the template should be redrawn. | 
| location | Chart3DLocation | 
      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 | Chart3DSeries | 
      The 3D series to which the data point belongs. | 
| dataLabel | Chart3DDataLabelSettingsModel | 
      The style settings for data labels. | 
| point | Chart3DPoint | 
      The data point for which the data label template is created. | 
| data | Chart3DTextRenderEventArgs | 
      The text render event arguments. | 
| labelIndex | number | 
      The index of the data label. | 
| redraw | boolean | 
      Indicates whether the template should be redrawn. | 
| location | Chart3DLocation | 
      The location values for the data label. | 
Returns void
render
Renders a 3D series on a 3D chart with data labels.
| Parameter | Type | Description | 
|---|---|---|
| series | Chart3DSeries | 
      The 3D series to be rendered. | 
| chart | Chart3D | 
      The 3D chart on which the series is rendered. | 
| dataLabel | Chart3DDataLabelSettingsModel | 
      The data label style for the series. | 
Returns void