ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

ZoomCharts.Configuration.PieChartSettingsLabels

Methods

This type does not define any methods.

Properties

angle: number

Label rotation angle.

connectorLength: number

Minimal connector length from slice to label.

connectors: boolean

Whether to show connector lines for labels.

enabled: boolean

Show/hide labels.

includeName: boolean

Whether to include the name in the label

includePercent: boolean

Whether to include the percent in the label

insideLabel: "always" | "auto" | "append"

Inside label placement method.

Valid values:
  • always - always show
  • auto - show only when available area is at least insideLabelVisibilityFraction from label size
  • append - same as auto, but append inside label to normal label when it cannot be shown inside.
insideLabelVisibilityFraction: number

Inside label is not shown if the fraction of label that fits inside slice is smaller than this.

interLabelSpacing: number

Min distance between labels, as a fraction of line height.

labelAppendFunction: (outerText: string, innerText: string, isRightSide: boolean) => string
Parameters
outerText: string
innerText: string
isRightSide: boolean
Return value
Data type: string
placement: "aligned" | "wrap"

Outside labels placement method.

Valid values:
  • aligned - align labels in vertical lines
  • wrap - wrap labels tightly around pie
X