Function: a!pieChartConfig()
Contains configuration for how to display data in a pie chart. See the Pie Chart Component page for examples on using this configuration supporting function.
See also: Chart Configuration Using Records, Column Chart Config, Bar Chart Config, Line Chart Config, UX Charts Best Practices
Name | Keyword | Types | Description |
---|---|---|---|
Primary Grouping |
|
Grouping |
Defines the field labels to display for each slice of the pie chart, configured using |
Measures |
|
Measure |
Defines the numerical calculations for data in the chart, configured using |
Sort |
|
SortInfo |
Field to sort by in the chart. To define a sort, use the alias or record field reference of any grouping or measure field, and sort ascending or descending using |
Data Limit |
|
Integer |
Maximum number of data points to display on the chart. Default: 100. Valid values: 1-5000. |
Link |
|
Any Type |
Link to execute when a user selects a data point on the chart. Use |
a!pieChartConfig()
a!pieChartConfig()
is always used within a pie chart component.data
parameter of a!pieChartField()
.Count of <primary key field name>
.primaryGrouping
is required to display data on the chart.dataLimit
determines the total number of slices displayed in the chart.link
parameter, the current selected data is available using fv!selection
. This variable returns a map that contains each of the field aliases as the key and the unformatted value as the value. Since the alias is used for the key, aliases are required for each grouping and measure when using a link. See Chart Configuration Using Records for an example of how to configure a link.