对于范围轴 CategoryPlot p = chart.getCategoryPlot(); ValueAxis axis = p.getRangeAxis(); 对于域轴 CategoryPlot p = chart.getCategoryPlot(); CategoryAxis axis = p.getDomainAxis(); 然后设置字体:Font font = new Font("Dialog", Font.PLAIN, 30); axis.setTickLabelFont(font)
setTicklabelFont
->setTickLabelFont
- JohnJ