必须设置字体
本来会出现问题
饼图的解决
chart.setTitle(new TextTitle("作品上交情况统计图", new Font("宋体", Font.BOLD,22)));
LegendTitle legend = chart.getLegend(0);
legend.setItemFont(new Font("宋体", Font.BOLD, 14));
PiePlot plot = (PiePlot) chart.getPlot();
plot.setLabelFont(new Font("宋体", Font.BOLD, 16));
也就是对出现中文的三个部分加上字体
……
严科磊老师 by 2010-4-29 16:41:06 阅读全文 | 回复 | 引用通告
|