Hi Doron,
You can update a web chart using the same method as updating a web page. For example, you may reload the web page. You may refer to your HTML/Javascript documentation on how to automatically reload web page.
If you would like to use the method in the realtime charts sample code, you can freely put multiple realtime charts in multiple frames. For example:
<frame src="realtimechart1.jsp">
<frame src="realtimechart2.jsp">
<frame src="realtimechart3.jsp">
<frame src="realtimechart4.jsp">
The realtime chart can be any chart you like. It can be a pie chart or bar chart or any other kinds of chart.
The realtime chart sample code uses "streaming update" to the update the chart image. Basically, on the browser side, the code "JsChartViewer.get('ChartImage1').streamUpdate();" is used to stream update the chart. It is driven by a Javascript timer to run periodically. On the server side, the code is written to handle the stream update. You may refer to the "Realtime Chart" section of the ChartDirector documentation for details.
Hope this can help.
Regards
Peter Kwan |