CategoryPlot plotBar = chart.getCategoryPlot();
NumberAxis na= (NumberAxis)plotBar.getRangeAxis();
na.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
jfreechart Y轴设置为整数
最新推荐文章于 2021-08-28 16:53:19 发布
CategoryPlot plotBar = chart.getCategoryPlot();
NumberAxis na= (NumberAxis)plotBar.getRangeAxis();
na.setStandardTickUnits(NumberAxis.createIntegerTickUnits());