Function: a!columnChartConfig()
Contains configuration for how to display data in a column chart. See the Column Chart Component page for examples on using this configuration supporting function.
See also: Chart Configuration Using Records, Bar Chart Config, Line Chart Config, Pie Chart Config, UX Charts Best Practices
Parameters
Name | Keyword | Type | Description |
---|---|---|---|
Primary Grouping | primaryGrouping | Grouping | Defines the field labels to display on the axis in the chart, configured using a!grouping(). |
Secondary Grouping | secondaryGrouping | Grouping | Defines the field labels to display in the stacking or grouped bars in the chart, configured using a!grouping(). |
Measures | measures | Measure | Defines the numerical calculations for data in the chart, configured using a!measure(). If no measure is provided, a count of records shows as the measurement in the chart. |
Sort | 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 a!sortInfo(). |
Data Limit | dataLimit | Integer | Maximum number of data points to display on the chart. Default: 100. Valid values: 1-5000. |
Notes
a!columnChartConfig()
is always used within a column chart component.primaryGrouping
is required to display data on the chart. The data values returned from the grouping display on the horizontal 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.Count of <primary key field name>
.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.On This Page