Code: Select all
for %s %o %c regional::casatxa atlanta "Atlanta" regional::casboxa boston "Boston"
graph gr{%o}.line @pcy({%s})
gr{%o}.addtext(t) {%c}
next
My concern with this code is that my first line is going to get very long and unwieldy if I have dozens of series to loop through. Moreover, what if I later need to loop through just the series names? In this example they are not stored in a separate array, so I would have to retype them.
Is there a better approach? It seems ideal to be able to store each concept in its own array, and then loop through the arrays in parallel. Unfortunately I do not see any way of doing this in the documentation.
Thank you.