Hi need help with the screenshot having two charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manuvishnoi
Posts: 4
Joined: Tue May 23, 2006 10:29 pm
Contact:

Hi need help with the screenshot having two charts

Post by manuvishnoi » Thu May 25, 2006 2:21 pm

Hi all,
I need to develop this screen using the jfree chart ,since I am new to the Jfree chart I need help as to how I to get started and how I will draw two graphs .
If someone can provide me with some demo code that will be really helpful.The screenshot is on this url.
Thanks.
Last edited by manuvishnoi on Tue May 30, 2006 2:02 pm, edited 1 time in total.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 25, 2006 2:45 pm

You won't be able to produce this with JFreeChart unless you're prepared to write a custom dataset class (based on the IntervalXYDataset interface) and a custom renderer (something along the lines of XYBarRenderer, but taking into account the variations in the y-value range also).

I think it is doable, but if you are new to JFreeChart maybe it is not so easy.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

manuvishnoi
Posts: 4
Joined: Tue May 23, 2006 10:29 pm
Contact:

Post by manuvishnoi » Thu May 25, 2006 3:32 pm

does the developer guide has similar demo chart programs.

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 25, 2006 4:00 pm

No. As I said, to create a chart like that you'd need a custom dataset and a custom renderer, and those haven't been written by anyone. If I had more time, I'd write one for you and include it in JFreeChart...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Mon May 29, 2006 9:00 am

I think there is a possible workaround. The vertical bars are not a problem and the horizontal footer could be an annotation. Just an idea...

Locked