Function: a!barChartConfig()
Contains configuration for how to display data in a bar chart. See the Bar Chart Component page for examples on using this configuration supporting function.
See also: Chart Configuration Using Records, Column Chart Config, Line Chart Config, Pie Chart Config, UX Charts Best Practices
Name | Keyword | Types | Description |
---|---|---|---|
Primary Grouping |
|
Grouping |
Defines the field labels to display on the axis in the chart, configured using |
Secondary Grouping |
|
Grouping |
Defines the field labels to display in the stacking or grouped bars in the 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!barChartConfig()
a!barChartConfig()
is always used within a bar chart component.Count of <primary key field name>
.primaryGrouping
is required to display data on the chart. The data values returned from the grouping display on the vertical axis.secondaryGrouping
is optional; if this parameter is provided, the data values for the secondary grouping will display in the legend and / or tooltips if they are enabled.dataLimit
determines the total number of data points displayed in the chart. When both a primary and secondary grouping are provided, there is a data point for each unique combination of values: with 3 values in your primary grouping and 4 values in your secondary grouping, you will have 12 values on your 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.