ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)

ZoomCharts.Configuration.PieChartChartClickEventArguments

Describes the base properties shared between all events raised by the different charts.

Inheritance hierarchy

This type inherits from PieChartChartEventArguments. Through this type it also inherits members from BaseChartEventArguments.

Methods

This type does not define any methods.

Properties

chart: BaseApi
Inherited from: BaseChartEventArguments

The chart object for which the event has been raised.

clickCredits: boolean
Inherited from: BaseChartEventArguments
clickLabel: BaseLabel

Contains the label object that was clicked or null if none was.

clickOrigin: "back" | "slice" | "label" | "insideLabel" | "legend"
Introduced in version 1.12.0.

Specifies the source of the click event.

Valid values:
  • back - the "Back" button in the center of the piechart was clicked.
  • slice - the slice itself was clicked.
  • label - the outside label was clicked.
  • insideLabel - the inside label was clicked.
  • legend - the legend was clicked.
clickPie: PieChartPie

Contains the pie that was clicked. It is possible that this is set while clickSlice is not if the small pie in the center of the chart (under the Back button) is hovered.

clickSlice: PieChartSlice

Contains the slice that was clicked. Note that this will also be populated when the label of the slice is clicked.

count: number

The total number of slices currently visible (without counting Previous and Others).

Inherited from: BaseChartEventArguments
Properties
url: string
urlTarget: string
hoverLabel: BaseLabel

Contains the label object if one is currently hovered, null otherwise.

hoverPie: PieChartPie

Contains the currently hovered pie. This can be set while hoverSlice is not if the small pie in the center of the chart (under the Back button) is hovered.

hoverSlice: PieChartSlice

Contains the currently hovered slice. Note that this will also be populated when the label of the slice is hovered.

label: BaseLabel
This property is deprected; use `hoverLabel` instead.
offset: number

The number of slices that are hidden in the Previous slice.

This will be null if the chart has not been rendered.

origin: string
Inherited from: BaseChartEventArguments

The currently open pie object of the chart.

selection: Array<PieChartSlice>

A list of currently selected slices. Note that changes to this array does not result in changes to the selection, use selection() API method for that.

This property is deprected; use `hoverSlice` instead.
X