Saving the Chart as XML

You can save the chart as ViZml, which is an XML representation of the chart. You can then recreate the chart by referencing the ViZml file as the graph specification for the GGRAPH command. See the topic GRAPHSPEC Subcommand for more information. For more information about ViZml, refer to the ViZml Reference.

  1. From the menus choose:

    File > Export Chart XML

  2. Specify a location and name for the ViZml file.
  3. Click Save.

Because the data are embedded in the ViZml, you may want to remove the data cases from the ViZml.

How to Remove Embedded Data

The data with which you created the chart is saved in the XML. If you run the GGRAPH command using the ViZml file as the graph specification, the chart will not reflect changes in the original dataset because the data in the XML file are static. To have the chart update based on updates to the data, you have to remove the embedded data from the XML file.

  1. Open the XML file in a text editor or an XML editor.
  2. Look for the <embeddedSource> element.
  3. Delete the <embeddedSource> element. (If you are using a text editor, don't forget to delete all the child elements of <embeddedSource> and the closing </embeddedSource> tag.
  4. Replace the <embeddedSource> element with <userSource id="graphdataset"/>.
  5. Save your changes.

Now, when you run the GGRAPH command with the updated ViZml file, the chart will show updated data. Be sure to use the GRAPHDATASET subcommand, with the NAME keyword set to graphdataset. Also make sure that the VARIABLES keyword identifies the same variables and functions that you used to create the original chart. Look for the <sourceVariable> elements in the XML to check the names.