I have a parameter with index domain (scenario, year). I want to have a plot of parameter (scenario, year) vs year which looks something like in the image attached.
In the image, for example, the number of scenarios is two. However, in my project, the number of scenarios changes with user input data.
Could anyone please guide me to any resource (example project) in which such type of plots are generated or could give any suggestions how do I proceed to create such plots? Thanks.
Best answer by mohansx
Specify the index of Years as the x-axis domain and Parameter(scenario, year) as the identifier in the y-axis. as scenario is the remaining free index, the chart will automatically plot as many lines as the number of scenarios in that set. See attached example.