Set a Data Value
set_datavalue(int datanum, int series, String value, boolean re_paint)
This method enables any of the graph data values to be changed.
datanum - this specifies the bar number within the series to be changed.
series - this specifies which series is to be changed.
value - the value to which this data item should be set.
re-paint - specifies whether the graph should be re-drawn 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(2,1,"52.4",
true);">
^back to top
|