refresh/update a chart continuously [message #160793] |
Sun, 14 May 2006 11:38  |
Eclipse User |
|
|
|
Originally posted by: fcheng.us.ibm.com
Suppose the data is being updated continuously (every 0.1 second or some
small interval), is it possible to refresh the chart every time the data is
updated?
I guess we could just create a new chart every time. But the chart would
keep flashing which would be annoying.
Any solution/idea?
Thanks
|
|
|
Re: refresh/update a chart continuously [message #160876 is a reply to message #160793] |
Mon, 15 May 2006 04:38  |
Eclipse User |
|
|
|
Hi Feng,
Yes it's possible, you don't need to recreate a chart everytime. You can
reuse the same chart, update the data, and then call "refresh" (not build),
and then render. Refresh will skip layout computations (not needed if you
only change the data).
There is an example in org.eclipse.birt.chart.examples :
SwingLiveChartViewer
Thanks,
David
"Feng Cheng" <fcheng@us.ibm.com> wrote in message
news:e47isp$9hb$1@utils.eclipse.org...
> Suppose the data is being updated continuously (every 0.1 second or some
> small interval), is it possible to refresh the chart every time the data
> is updated?
>
> I guess we could just create a new chart every time. But the chart would
> keep flashing which would be annoying.
>
> Any solution/idea?
>
> Thanks
>
|
|
|
Powered by
FUDForum. Page generated in 0.03245 seconds