Using PCScript with the PopChart Embedder

If you are requesting images from PopChart Server via the PopChart Embedder (refer to Chapter 4 and Chapter 5 of the PopChart Server User Guide), you will send your PCScript command string via the pcScript attribute.

This attribute should be set to your PCScript command string. The code below illustrates the use of the pcScript attribute in Java.

Example 5.3 Setting the PCScript Command String in PopChart Embedder

String pcscript="textbox.setText(Hello World)graph.setCategories(Apple)graph.setSeries(Andy;10)setSeries(Joe;15)setSeries(Jenny;20)"; 

graphImage.pcScript = pcscript;