java使用jfreechart建立时序统计图( 二 )


        DateFormat format = new SimpleDateFormat("MM");   
        DateTickUnit dt = new DateTickUnit(DateTickUnit.DAY,30,format);  
        da.setTickUnit(dt);         
        return chart;  
    } 

java使用jfreechart建立时序统计图



7在窗口中显示统计图:
jf.add(new ChartPanel(tongjitu()));

java使用jfreechart建立时序统计图



8运行项目, 下图为发卖时序统计图 。

java使用jfreechart建立时序统计图




以上内容就是java使用jfreechart建立时序统计图的内容啦, 希望对你有所帮助哦!

猜你喜欢