Hi Mikey,
In your code, the chart should update every second. If you do not see the chart updating
every one second, I can think of two reasons:
(a) The JSP server or the network is slow so it cannot update that fast.
(b) The chart does update every one second normally. However, the updated chart is the
same as the original chart. So you do not see any change. To confirm if the chart has been
updated, please put the current time (with hh:mm:ss) in the chart title. In this way, even if
the data are the same, you can at least see the chart title changes and can confirm that
chart has in fact been updated. Alternatively, you can look at your server log file to see if
there is in fact a request every one second.
If you want the chart to update every 10 seconds, please change the timer to 10000
milliseconds (instead of 1000 in your code).
Hope this can help.
Regards
Peter Kwan |