createXYBarChart, IntervalXYDataset and StackedXYBarRenderer

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
peetzer
Posts: 11
Joined: Mon May 11, 2009 2:20 pm

createXYBarChart, IntervalXYDataset and StackedXYBarRenderer

Post by peetzer » Mon Apr 26, 2010 3:10 pm

I use the 'XYBarDataset' to adjust the width of the bar, the (xy) dataset contains timeperiods..
All works fine using the 'XYBarRenderer' but when two series overlap, one gets on top of the other. So that is why I want to use the 'StackedXYBarRenderer' but I get an java.lang.ClassCastException org.jfree.data.xy.XYBarDataset in StackedXYBarRenderer.findRangeBounds :cry:

Please advise,

Regards Peter

{with jfreechart 1.0.13}

Locked