About modifying charts and gauges with script
To create a chart or a gauge on a form, you must use the appropriate form component and then use the Specify Chart Settings dialog box or the Specify Gauge Settings dialog box to define it. You can also further modify your chart and gauge components using these dialog boxes.
Note:  You cannot 
 create a chart or gauge using form scripting. You must create the chart 
 component using the Specify Chart Settings 
 dialog box, and the gauge component using the the Specify 
 Gauge Settings dialog box. Once the component has been initially 
 created and defined, then you can use form scripting to modify and refine 
 the components. 
      However, there might be times when you want to include functionality or features on your chart/gauge that you cannot specify using these dialog boxes. These times might include these types of situations:
- You might want to structure your chart/gauge so that the chart/gauge 
	 display changes whenever you click a certain button on the form. 
	This type of functionality is currently not available through the settings dialog boxes. 
- You might want to use chart/gauge properties that are supported in Windows client, but not represented on either of the settings dialog boxes.
In these cases, you can add the features or functionality you want by creating form scripts.