Composed Chart
Last updated
Last updated
Describes how to visualize data using the Composed Chart component.
The chart supports data in array of arrays or array of objects formats. In case you do not have data in one of these formats, you should use the transform node in an action to convert them. Or you can try to use built-in data mapper, which will be described further.
Recommended data format:
Place a chart to a view and select it. In the inspector you can find a complex setting for:
Items (data) - representing a bunch of all chart's data.
Axes - defining chart's multi-level axes.
Series - specifying each data series extracted from the items (data).
Ranges - specifying dividing lines or areas in the chart.
Set Items (data) to be dynamic and connect with your data.
The most important is to set a unique Id, which will be used to link series to the axis. You should also set a proper Type. Type: Value - if an axis should represent numeric values; Category - if an axis should display categories as a pure text; or Datetime - if an axis will work with time (ISO-8601 or unix timestamps).
Just below the common fields, such as series title, color, area opacity or type of series, you can find settings for X-axis and Y-axis.
The Axis Id
field specifies the Id of the axis, you already defined before in Axes configuration.
The Axis data key
is used to extract data from the Items (data). Generally speaking, this is the path to the root property. In case, you are using data in format: array of arrays (as in this doc), you can specify the index on which the property is located.
Axis data key: 0
tells you, that a value at the first position will be mapped to the related axis. -> 2020; 2021; 2022
Axis data key: 1
tells you, that a value at the second position will be mapped to the related. axis. -> 10; 20; 30
Under construction