ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

ZoomCharts.Configuration.PieChartDataObject

Describes a single slice in the data. Can include the nested items for that slice as well.

Inheritance hierarchy

This type inherits from PieChartDataObjectCommon. Through this type it also inherits members from BaseDataObjectBase.

Methods

This type does not define any methods.

Properties

extra: any
Inherited from: BaseDataObjectBase

Store any additional data values within this field. Although it is possible to extend the data object itself with additional fields it is not recommended to do so because a future ZoomCharts version could introduce a known parameter with the same name thus changing the behavior of an existing chart.

id: string
Inherited from: PieChartDataObjectCommon

The ID of the slice. Note that if the ID is set then by default the chart assumes that the slice is expandable. To avoid this, set style.expandable to false. The slice ID is used to load the nested items and is the same value as the ID of the inner pie object.

name: string
Inherited from: PieChartDataObjectCommon

The name of the slice that will be used as the default label text.

nameLegend: string

The name of the slice that will be displayed in the legend. If this is not set, the slice label is used and if that is not set, then the name property is used instead.

Styles specific to the particular slice.

Inherited from: PieChartDataObjectCommon

Optional subvalues for drilldown. If subvalues are available, then you can either specify them directly, or provide id and let the chart request them separately.

value: number

The numeric value of the slice. This is used to calculated the size of the slice.

X