Pie Chart
Introduction
A pie chart shows the values of one data source as slices of a circle. With a hole in the middle, it becomes a doughnut chart.
For the Dimensions and Advanced settings, which all charts share, see Common Chart Properties. This page describes the properties that are specific to the pie chart.
The pie chart does not use a series list. It uses one data source, and each object in it becomes one slice.
Data Source Section
Series
This required property is the data source for the slices of the pie chart.
Series Name
This required property is a text template that returns a unique name for each slice:
Value Attribute
This required property is the attribute used to get the value for each slice.
Sort Attribute and Sort Order
The attribute used to sort the slices, and the sort order: Ascending or Descending.
Slice Color
An expression that returns the color of each slice. You can use attributes of the object in the expression.
Selection Type
Set to Single to let users select a slice. Other widgets can then listen to the selection.
General Section
Hole Radius
A percentage between 0 and 100 that sets the radius of the hole in the middle of the chart, relative to the chart itself. Set to 0 for a pie chart, or to a higher value for a doughnut chart. The default value is 0.
The pie chart also has the Show legend property described in General Section, and a Tooltip hover text property for the message shown when the user hovers over a slice.
Events Section
- On click action – The action that runs when the user clicks a slice.