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.
- From the menus choose:
- Specify a location and name for the ViZml file.
- 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.
- Open the XML file in a text editor or an XML editor.
- Look for the
- 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
- Replace the
- 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
in the XML to check the names.