I want to make bar chart using jfreechart such that the bars which belong to the same category should be displayed adjacent without any gaps. The categories should be displa
You can do this with the setCategoryMargin() method on the domain axis.
For example with a Category Plot:
CategoryPlot plot = chart.getCategoryPlot();
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryMargin(0.15f);
You will need to play with different values for the margin to find the correct value for your graph.