AFreeChart -軸のフォントの指定
軸のフォントの指定
XYPlot plot = chart.getXYPlot();// 軸の目盛のフォントを変える。
Font xyAxisFont = new Font(Typeface.SANS_SERIF, Typeface.BOLD, 30);
plot.getRangeAxis().setTickLabelFont(xyAxisFont);
plot.getDomainAxis().setTickLabelFont(xyAxisFont);
// 軸のタイトルのフォントを変える。
Font xyTitleFont = new Font(Typeface.SANS_SERIF, Typeface.BOLD, 30);
plot.getDomainAxis().setLabelFont(xyTitleFont);
plot.getRangeAxis().setLabelFont(xyTitleFont);