Statistical « BarChart « JFreeChart Q&A





2. Bars don't centre in statistical bar charts    jfree.org

I have the problem that the bars are not centred in statistical bar charts with standard deviation indicators. I found out that it happens when you use the StatisticalBarRenderer.setMaximumBarWidth() method to make bars thinner than the automatic width. If you don't have many categories it aligns the bars to the left of the category area. Therefore the bar is not above ...