§‖ Date ::..
§‖ BLog Info ::..
§‖ New BLog ::..
§‖ Comment ::..
§‖ Message ::..
§‖ User Login ::..
§‖ Search ::..
§‖ Links ::..

 
jfreechart中文问题

必须设置字体

本来会出现问题

饼图的解决

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));

也就是对出现中文的三个部分加上字体

 plot (图)   legend(说明) Title(标题)

严科磊老师 by 2010-4-29 16:41:06
阅读全文 | 回复(0) | 引用通告 | 编辑

 

发表评论:

    昵称:
    密码:
    主页:
    标题:


Powered by Oblog.