a!areaChartConfig(primaryGrouping, secondaryGrouping, measures, sort, dataLimit, link, showIntervalsWithNoData)
Contains configuration for how to display data in an area chart. See the Area Chart Component page for examples on using this configuration supporting function.
See also:
Name | Keyword | Types | Description |
---|---|---|---|
Primary Grouping |
|
Grouping |
Defines the field labels to display on the axis in the chart, configured using a!grouping(). |
Secondary Grouping |
|
Grouping |
Defines the field labels to display in the series of stacked or overlapping data points in the chart, configured using a!grouping(). |
Measures |
|
List of 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 |
|
List of SortInfo |
Use a!sortInfo() to define a sort in ascending or descending order. Use the alias of any groupings or measures to sort by the values in the chart. Use a record field or related record field reference to sort by data that is not referenced in the chart. |
Data Limit |
|
Number (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 |
Show time intervals with no data |
|
Boolean |
Determines whether the axis in the chart displays date or time values that do not have a value associated with them. For example, show January, February, and March, even if February has no data. This parameter is only available when a Date, Time, or Date and Time field is used as the primary grouping. Default: false. |
Count of <primary key field name>
.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.To use the showIntervalsWithNoData parameter, the primaryGrouping must be a Date, Time, or Date and Time field, and have a time interval set to a value other than "AUTO"
. For example:
true
when you select a time interval for your primary grouping.true
, the sort must be on the primaryGrouping field.The following patterns include usage of the Area Chart Configuration.
Area Chart Configuration