how to create graph in real time for monitoring

Discussion about JFreeChart related to stockmarket charts.
Locked
fvfd

how to create graph in real time for monitoring

Post by fvfd » Tue Aug 17, 2004 2:02 am

Hi, anyone who can graph data in real time, and graphing like a monitor.

hongping
Posts: 14
Joined: Thu Jul 29, 2004 1:32 am

Post by hongping » Wed Aug 18, 2004 8:42 pm

If you have purchased the developer's guide, there is a dynamic chart example in chapter 9 that monitors the JVM memory usage in real time.
In short, you have to set the history count of a TimeSeries that you use in the Chart, and keep adding new points to the TimeSeries. The notification system in JFreeChart will take care of the updating automatically.

The guide is really worth it, and JFreeChart is really a wonderful project. Thanks for all the great work!

Locked