DefaultCategoryDataset on a BarRenderer (Regarding a Series)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
MattBallard
Posts: 29
Joined: Wed Jun 06, 2007 7:41 pm

DefaultCategoryDataset on a BarRenderer (Regarding a Series)

Post by MattBallard » Mon Aug 20, 2007 8:53 pm

Can you have multiple Series for a DefaultCategoryDataset?

Take a look at this screen capture.http://www.flickr.com/photos/phirstube/1185042399/

I need each bar to have its own gradient. Not the gradient spread out over all the bars.

I figure I could accomplish this by using the setSeriesPaint method but cant figure out how to create multiple series within the DefaultCategoryDataset.

MattBallard
Posts: 29
Joined: Wed Jun 06, 2007 7:41 pm

Post by MattBallard » Tue Aug 21, 2007 2:48 pm

I have seen code out there that has series names in the addValue method. Specifically the field "java.lang.Comparable rowKey". Is this value actually the series value?

MattBallard
Posts: 29
Joined: Wed Jun 06, 2007 7:41 pm

Post by MattBallard » Fri Aug 24, 2007 2:45 pm

I am using the Batik LinearGradientPaint class and I get the same result.

The graphic is not on each specific bar. It spans all the bars. I am confused as to why the GradientPaint (java class) acts in the manner I expect, but not the Batik or my own gradientpaint class.

Locked