Waterfall like bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sayan_maity
Posts: 15
Joined: Tue Feb 13, 2007 9:29 am

Waterfall like bar chart

Post by sayan_maity » Tue Feb 13, 2007 12:10 pm

I need to draw a vertical bar chart. The chart will be like a waterfall chart but the bars will not be connected with each other. Suppose the first bar ends at 2 of Y-Axis and 1 of X-Axis then the second bar will start from 2 of Y-Axis and 2 of X-Axis.
Please let me know how to draw this kind of bar chart.

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 » Tue Feb 13, 2007 4:17 pm

I'm not completely sure what you are trying to draw, but there is a demo (XYBarChartDemo6.java) included with the JFreeChart Developer Guide that shows how the XYBarRenderer class can draw bars pretty much unconstrained based on data in an IntervalXYDataset.
David Gilbert
JFreeChart Project Leader

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

sayan_maity
Posts: 15
Joined: Tue Feb 13, 2007 9:29 am

Post by sayan_maity » Wed Feb 14, 2007 7:28 am

Thanks for the help. I used WarefallRenderer to draw the graph which I was looking for.

Locked