Dynamic charts..?

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

Dynamic charts..?

Post by Reji » Thu Jan 03, 2002 10:25 am

Hi,

My problem is, I have to draw stripe chart from a multithreaded data source. Refresh interval will be mininum 5 seconds.Which chart model will be better to use? Any model supports repaint? Any documentations available? Plz mail to rejimani@hotmail.com

regards

Reji

RE: Dynamic charts..?

Post by Reji » Fri Jan 04, 2002 2:41 am

Hi,

Anybody tried to create dynamic charts using JFreeChart Library? Plz help me...

Reji

RE: Dynamic charts..?

Post by Reji » Fri Jan 04, 2002 2:44 am

How can I fix the Y-Axis interval for a dynamic chart using JFreeChart? Any other open sourse java library available for dynamic charts?

David Gilbert

RE: Dynamic charts..?

Post by David Gilbert » Fri Jan 04, 2002 7:42 am

Hi Reji,

JFreeChart has a mechanism for repainting charts whenever a dataset changes. Have a look through the TimeSeriesCollection class, for example. This works reasonably well, but you will run into performance problems if you try to do too many updates in a short period of time. JFreeChart wasn't designed for realtime chart updates.

For a fixed range on your axis:

axis.setAutoRange(false);
axis.setMinimumAxisValue(...);
axis.setMaximumAxisValue(...);

On the main JFreeChart page, there are a list of other open source chart libraries that I know of, but I haven't used any of them so I can't comment on whether or not they are good at dynamic charts.

Regards,

DG.

Reji

RE: Dynamic charts..?

Post by Reji » Fri Jan 04, 2002 10:08 am

How can I get Source code of TimeSeriesCollection class? Can you mail me? I downloaded latest version of JFreeChart, but it contains only class files. plz mail to rejimani@hotmail.com

David Gilbert

RE: Dynamic charts..?

Post by David Gilbert » Fri Jan 04, 2002 10:36 am

It's in the JCommon class library which you can download from:

http://www.jrefinery.com/jcommon

Regards,

DG.

Locked