CREATE FIGURE Macro Demo

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:

  • GeneratePalatte()
  • Options Arrays

The macro creates three separate figures to demonstrate the different ways of using the CreateFigure() function.

Installation

  1. Download the file GISDK_Create Figure.zip and extract the file CREATE FIGURE.RSC. A good place to save the resource file is in the GISDK\Samples folder in the Maptitude program folder.
  2. Choose Tools-GIS Developer's Kit-GISDK Toolbar to open the GISDK toolbar.
  3. Compile this macro in test mode using the Compile button (first button).
  4. Run this macro by clicking the Test button (second button), typing the dialog box name (Main), clicking the Macro radio button, and clicking OK.
Find Us 1172 Beacon St., Suite 300
Newton MA 02461 USA

Home  |  Products  |  Contact  |  Secure Store

Copyright © Caliper Corporation