Is there a way to adjust the width of the bars in a Barchart?
I create my chart with the following code.
final JFreeChart chart = ChartFactory.create
After getting no results using positive margins and zero, I tried using negative numbers for itemMargin to see what would happen. The bars started getting thicker. I don't know if this is recommended, though, since you will get overlap if there is not enough space available.
BarRenderer renderer = (BarRenderer) chart.getCategoryPlot().getRenderer();
renderer.setItemMargin(-2);