How to create Barchart with colored bars and defined width?

A discussion forum for the JCommon class library.
Post Reply
JFreeGuest
Posts: 4
Joined: Wed Jul 02, 2008 9:34 pm

How to create Barchart with colored bars and defined width?

Post by JFreeGuest » Wed Jul 02, 2008 9:41 pm

Hello,

I'm new to Jfree and want to create a Bar Chart with red (negative values) and blue (positive values) bars and define the minimal width of the bars. Which dataset and renderers I have to use for this?

At the moment I'm using the HistogramDataset where I can color the data series (with XYPlot -> XYItemRenderer -> setSeriesPaint()) but I cannot find the possibility to define the minimal width of the bars (directly or indirectly).

Thanks for help.

Post Reply