To send a Plot data set via PCScript, simply send each series to the graph via separate Graph.SetSeries() commands. The first parameter in this command should be the series name. Then you should list each data item in the series, separating data values with a comma and data items with a semi-colon.
Note: The Plot data class does not use the Graph. SetCategories() command.
A Plot data item will consist of two or three data values, each separated by a comma. For X-Y Plot data, these values should be listed in the following order: x-value, y-value, bubble value. For Time Plot data, the order will be: date, value, bubble value. In both cases, the bubble value is optional.
Assuming that your graph object is named timegraph, you could send the Time Plot data set of Example 12.5 to a graph with the PCScript Example 12.10:
Example 12.10 Time Plot Data Set in PCScript
timegraph.SetSeries(Name Recognition; 6/21/2001,54; 8/12/2001,90; 10/16/2001,75)
timegraph.SetSeries(Considering Buying; 7/1/2001,37; 12/12/2001,23; 9/10/2001,86)
Note: You cannot have enable data sorting in PCScript. You will need to either pre-sort your values (which is recommended anyway), or enable data sorting in the appearance file by opening it in PopChart Builder and checking the Sort Data box in the Graph Properties > General dialog pane.
Assuming that your graph object is named xygraph, you could send the X-Y Bubble data set of Example 12.6 to a graph with the PCScript in Example 12.11:
Example 12.11 X-Y Bubble Data Set in PCScript
To learn more about sending data via PCScript, refer to "Sending Data with PopChart Script" in Chapter 6 of the PopChart Server User Guide.