看看API,设置字体吧 /* 下面是设置曲线图图片乱码的部分代码,参考一下吧 */ chart = ChartFactory.createTimeSeriesChart(str, "time", "count", dataset, true, true, false); XYPlot localXYPlot = (XYPlot)chart.getPlot(); DateAxis localDateAxis = (DateAxis)localXYPlot.getDomainAxis(); ValueAxis numberaxis = localXYPlot.getRangeAxis(); chart.getLegend().setItemFont(new Font("宋体", Font.PLAIN, 12)); TextTitle textTitle = chart.getTitle(); textTitle.setFont(new Font("黑体", Font.PLAIN, 20)); /*------设置X轴的标题文字------------*/ localDateAxis.setLabelFont(new Font("宋体", Font.PLAIN, 12)); /*------设置Y轴的标题文字------------*/ numberaxis.setLabelFont(new Font("黑体", Font.PLAIN, 12));