This example shows you how to setup a script to default the Field Selections of a graph.
For this example we will set the default fields for the IC Product graph tab. A similar script could be set up for any graph tab.
Dim frmICProd1 as Object
frmICProd1 = GetTriggerObject
if IsNull(frmICProd1) then frmICProd1 = GetActiveObject
if IsNull(frmICProd1) or frmICProd1.ClassName <> "ICProductForm" then Error "Wrong form class for script"
frmICProd1.GraphField = "SalesQuantity"
frmICProd1.GraphField2 = "SalesQuantityLastYear"
frmICProd1.ActivePage = 0
frmICProd1.ActiveProperty = ""
F11).F9).