Page 1 of 1

How to create Barchart with colored bars and defined width?

Posted: Wed Jul 02, 2008 9:41 pm
by JFreeGuest
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.