Realtime graphing on a web page

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kakin

Realtime graphing on a web page

Post by kakin » Wed Mar 05, 2003 7:54 pm

I'm looking for a Java based graphing tool that is similar to the Performance tab of the Windows Task Manager that can show continuous updates (for instance, every second) of data. Is this something JFreeChart is capable of doing? If so, where would I start?

Thanks for any info you can provide.

Eduardo Ramalho

Re: Realtime graphing on a web page

Post by Eduardo Ramalho » Thu Mar 06, 2003 3:20 pm

Hi kakin!

Yes it is possible! There is a similiar example with the paid documentation.

You can create a thread that adds values to the chart dataset. Every time a value is added, the chart will automatically be updated.

Regards,

Eduardo

Rob Stone

Re: Realtime graphing on a web page

Post by Rob Stone » Fri Mar 07, 2003 10:52 am

However, to get real-time updates in a web page you will either have to use an applet or get the web page to refresh itself at regular intervals to cause the graph to be redrawn. I use the second approach as I don't want the hassle of installing Java plugins on client PCs.

Rob

Locked