multiple charts

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

multiple charts

Post by Narasimha Narahari » Wed Jan 22, 2003 9:21 pm

Hi,
I would like to display more than 1 chart ex:bar chart on the same page. Could someone tell me how to go about doing this.

Thanks,
--Narasimha

Grant Smiley

Re: multiple charts

Post by Grant Smiley » Thu Jan 23, 2003 10:09 pm

I'm new with this, but it seems to me, all you would need to do is instantiate another instance of your chart objects with the new chart data, if it's a native app, create a new window or frame or whatever, and then just draw it. I've only tried servlet stuff, so I can tell you that in that case, you could definately instantiate another JFreeChart object, and draw another image on the screen. I found the example by Richard Atkinson on the main JFreeChart page most useful in my learning about how to create a chart from scratch. It's very simple and uses a lot of default settings, which you can then add on to later with more advanced stuff.

Locked