Set a Data Value
set_datavalue(int pienum, int segment, String value, boolean repaint)
This method enables any of the graph data values
to be changed.
pienum - this specifies the pie number
of the pie to be changed.
segment - this specifies which segment
within the pie is to be changed. eg. 3 would
represent the 3rd segment value of the pie.
value - the value to which this data
item should be set.
repaint - specifies whether the graph should be redrawn once the data value is set. Value can be either "true"
or "false"
e.g. to add a button to your web page which will
update the second data value of series 1,
<input
type="button" value="Update Data
Item" onclick="document.applets['GRAPH'].set_datavalue(1,2,"52.4",
true);">
^back to top
|