DefaultForm

Creates a GraphForm object. Note that you can also create a GraphForm with LabelForm, LineForm, RectForm, and ShapeForm.

Example

Chart Component Script
var form = new DefaultForm(); (1)
form.setShape(new java.awt.geom.Rectangle2D.Double(100,100,200,200)); (2)
form.setFill(true); (2)
graph.addForm(form); (3)
1 Create the GraphForm object.
2 Set GraphForm properties.
3 Use EGraph.addForm(form) to add the GraphForm objects to the Chart.

DefaultForm1

Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.