转 http://zhaoyl.javaeye.com/blog/200021
CategoryPlot categoryplot = (CategoryPlot)chart.getPlot();
NumberAxis numberaxis = (NumberAxis)categoryplot.getRangeAxis();
decimalFormat = new DecimalFormat("格式");
numberaxis.setNumberFormatOverride(decimalFormat);
//格式将指定纵坐标的显示格式,可以显示整数,小数,百分比等
比如:
0.00 显示如:56.89
0.00% 显示如:56.89%
0 显示如57
0% 显示如57%