jfreechart Y轴设立为整数

jfreechart Y轴设置为整数CategoryPlot plotBar chart.getCategoryPlot()NumberAxis na (NumberAxis)pl

jfreechart Y轴设置为整数

CategoryPlot plotBar =  chart.getCategoryPlot();  NumberAxis na= (NumberAxis)plotBar.getRangeAxis();  na.setStandardTickUnits(NumberAxis.createIntegerTickUnits());   
?