IDataLabelsConfig
export interface IDataLabelsConfig
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
boolean | (Optional) Indicates whether to render data labels enriched with percentages. Applies only to funnel chart. | ||
“auto” | “inside” | “outside” | (Optional) Placement of data labels. Applies to pie and donut charts only. - “auto” (default): whole-chart adaptive — outside (callouts with leader lines) when the smallest visible slice is ≤ 5%, inside otherwise. A chart never mixes inside and outside. - “inside”: force every label inside its slice; labels that don’t fit are omitted - “outside”: place every label outside with a leader line | ||
“auto” | “backplate” | (Optional) Visual style of data labels. Shared across all chart types. - “auto” (default): plain label text with automatic contrast color - “backplate”: solid background rectangle behind label text; composes with any position | ||
(Optional) | |||
(Optional) |
Property details
IDataLabelsConfig.percentsVisibleproperty
Indicates whether to render data labels enriched with percentages. Applies only to funnel chart.
percentsVisible?: boolean;
IDataLabelsConfig.positionproperty
Placement of data labels. Applies to pie and donut charts only. - “auto” (default): whole-chart adaptive — outside (callouts with leader lines) when the smallest visible slice is ≤ 5%, inside otherwise. A chart never mixes inside and outside. - “inside”: force every label inside its slice; labels that don’t fit are omitted - “outside”: place every label outside with a leader line
position?: "auto" | "inside" | "outside";
IDataLabelsConfig.styleproperty
Visual style of data labels. Shared across all chart types. - “auto” (default): plain label text with automatic contrast color - “backplate”: solid background rectangle behind label text; composes with any position
style?: "auto" | "backplate";
IDataLabelsConfig.totalsVisibleproperty
totalsVisible?: IDataLabelsVisible;
IDataLabelsConfig.visibleproperty
visible?: IDataLabelsVisible;