Initializing help system before first use

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.
  1. In the Palette > Components group, click and drag a Chart element onto the artboard.
  2. In the first page of the wizard, select the Data > Entity that will be displayed in the chart (MY_ARRAY).
  3. Click FINISH.
  4. 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
  5. In the Palette > Components group, click and drag an Index Filter element onto each Chart Series.
  6. 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).
Code editor
<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>