jfreechart Y轴设置为整数
CategoryPlot plotBar = chart.getCategoryPlot(); NumberAxis na= (NumberAxis)plotBar.getRangeAxis(); na.setStandardTickUnits(NumberAxis.createIntegerTickUnits());