jfreechart=chartfactory.createtimeserieschart(title,dominion,range,xydataset,true,true,true)省略中间过程。。。然后设置日期格式xyplotxyplot=(xyplot)图表.getxyplot()dateaxisdateaxis=(日期轴)xyplot.getdomainaxis()simpledateformatsfd=新的simpledateformat(“年-月-日-时”)dateaxis.setdateformatoverride文件(sfd)xyplot.setdomainaxis(日期轴)