To Repeat all Chart Series for each Element in a Set
You can repeat each series in a Chart per element in a set.
If all the series in a Chart have two or more index sets you can use
vdl-repeat-contents over one of the common index sets and repeat all the series per element in the set. The series will be grouped each element in the set.
- In the Chart element onto the artboard. group, click and drag a
- In the first page of the wizard, select the Data > Entity that will be displayed in the chart (MY_ARRAY).
- Click FINISH.
- Drag a Repeat Contents element onto the Chart on the artboard and enter the following in the repeat expression field:
=item in scenario.entities.MY_SET
- In the group, click and drag an Index Filter element onto each Chart Series.
- Select the Index Filter element on the artboard, and in the Attributes pane:
- Edit the Set attribute to select the dataset. (MY_SET).
- Edit the Value attribute to specify the value to display in the table column (=item.value).
<vdl-chart vdl-repeat-contents="=item in scenario.entities.MY_SET"> <vdl-chart-series entity="MY_ARRAY" labels="item.label"> <vdl-index-filter set="MY_SET" value="item.value"></vdl-index-filter> </vdl-chart-series> </vdl-chart>