StackedVerticalBarXYRenderer

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

StackedVerticalBarXYRenderer

Post by rahulb » Thu Jan 23, 2003 10:02 pm

does this exist? basically I have a TimeSeriesCollection and I want to see both :
- a bar chart like the ClusteredXYBarRenderer posted here recently, but with the series bars stacked on top of each other vertically, instead of next to each other horizontally
- a similarly stacked area or line chart

do those already exist, I couldn't find the appropriate chart in the examples. I hope that makes clear what I'm looking for. Otherwise I can probably look at the example mentioned earlier and write it myself (for the bar chart, at least).

thanks.

David Gilbert

Re: StackedVerticalBarXYRenderer

Post by David Gilbert » Fri Jan 24, 2003 10:25 am

Hi Rahulb,

The existing bar chart support on an XYPlot is pretty limited, there is only the XYBarRenderer class at present. From the responses in the forum, it sounds like the ClusteredXYBarRenderer is quite useful, so I will take a look at it and try to incorporate it into the 0.9.5 release. Hopefully there will be other contributions to follow ;-)

Regards,

Dave Gilbert

Don Mitchell

Re: StackedVerticalBarXYRenderer

Post by Don Mitchell » Sat Jan 25, 2003 3:04 am

I've started to write a stacked vertical bar for the XY interval dataset. One problem I've run into is that the XY renderer class heirarchy doesn't have the isStacked() method that the Category renderer classes use. This causes the Axis to be incorrect.

Are there plans to add that in? Right now I'm thinking of somehow changing the range in the ValueAxis. Is there a better approach.

Thanks,
Don

Locked