This macro demonstrates use of the CreateFigure() macro function which is used to create charts (line, scatter, bar, pie, etc.). The function itself takes only three arguments: the desired figure name, the type of figure, and an options array. The options array is used to specify all the parameters of the desired chart, including the values to be plotted.
You can experiment with inputting different "labels" and "values" arrays and specifying different chart types to see what kind of behavior they get. Ambitious users can try generating the labels and values arrays from data in a database, such as a map layer or a table. You can also experiment with some of the various options, such as "Grouped" vs. "Stacked."
Also demonstrated in this macro:
The macro creates three separate figures to demonstrate the different ways of using the CreateFigure() function.