BarRenderer « BarChart « JFreeChart Q&A

1. BarRenderer change possition of bars

I am using jfreechart a i used the setMaximumBarwidth function to make my bars thinner. But then the possition of bars is not right, they are not centered over the labels. ...

2. distace between Bars in BarRenderer

I have a BarChart and DefaultCategoryDataset -it has set of values . Rendere is BarRenderer. All bars (ca. 50) are shown correctly. But: All bars except ones have same distance to each other. Is there any function to help to eliminate this problem and show all bars with same distance to each other. thanks Parviz