To Repeat all Chart Series over each Scenario
Using a vdl-repeat-contents component, you can create a multi-scenario chart that repeats all the chart series per scenario on the shelf.
The chart series will be grouped by scenario.
- In the artboard. group, click and drag a Chart element onto the
- 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 component onto the Chart on the artboard and enter the following in the repeat expression field:
=s,i in scenarios
<vdl-chart title="Service Level Agreements" vdl-repeat-contents="=s,i in scenarios"> <vdl-chart-series type="bar" entity="MY_ARRAY" scenario="=i"></vdl-chart-series> <vdl-chart-series type="bar" entity="MY_ARRAY2" scenario="=i"></vdl-chart-series> </vdl-chart>