How to create Barchart with colored bars and defined width?

A discussion forum for the JCommon class library.

How to create Barchart with colored bars and defined width?

Postby 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.
JFreeGuest
 
Posts: 4
Joined: Wed Jul 02, 2008 9:34 pm

Return to JCommon

Who is online

Users browsing this forum: No registered users and 1 guest

cron