ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Automaticly Repaint Chart
Posted by Doron on Feb-23-2011 04:25
I'll try to explain myself.
I need to Realtime Charts like the example 'Realtime Chart Demo ' (others charts like Bar Charts,pie Charts).

Thenks again
Doron

  Re: Automaticly Repaint Chart
Posted by Peter Kwan on Feb-23-2011 09:20
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