ZoomCharts Documentation

Version: 1.21.9 (2025-10-05)
Switch to Version 2.0 (BETA)

PieChart.settings.slice.selectedStyle.label

This section is defined by the type PieChartSettingsLabelGroupLabelStyle.

Gets or sets the style of the external label. Use label.text to specify the text that will be displayed.

Properties

align: "center" | "right" | "left"
Default value: "left"
Inherited from: BaseSettingsLabelStyle

Text alignment.

angle: number
Inherited from: BaseSettingsLabelStyle

The angle at which the label are rotated

aspectRatio: number
Inherited from: BaseSettingsLabelStyle

Ratio between label sizes in different dimensions

Inherited from: BaseSettingsLabelStyle
View section details

Background style including fill color.

borderRadius: number
Inherited from: BaseSettingsLabelStyle

Radius of item border. Similar to CSS border radius property. Zero radius will show a rectangle

extra: any
Inherited from: BaseSettingsLabelStyle

Extra data associated with the label

forceNoWrap: boolean
Inherited from: BaseSettingsLabelStyle
image: string
Inherited from: BaseSettingsLabelStyle

Label image.

imageSlicing: [number, number, number, number]
Inherited from: BaseSettingsLabelStyle

Slicing to use tiled images. Array of 4 values: [left, top, width, height]

lineSpacing: number
Default value: 0.2
Inherited from: BaseSettingsLabelStyle

Vertical space between the lines of text. In multiples of text line height.

margin: number
Inherited from: BaseSettingsLabelStyle

Margin around label text

maxWidth: number
Inherited from: BaseSettingsLabelStyle

Maximum width of the label.

minNonEllipsisWidth: number
Inherited from: BaseSettingsLabelStyle

The minimum space, in pixels, that a label must display before shortening the label with ellipsis is considered.

multiLabelOrder: number
padding: number
Inherited from: BaseSettingsLabelStyle

Padding between item content and item border.

text: string
Inherited from: BaseSettingsLabelStyle

Label text.

Inherited from: BaseSettingsLabelStyle
View section details

Text style including fill color and font.

X