Instead of ChartFactory.createLineChart, consider createTimeSeriesChart(). Then you can format the date axis naturally, as shown here using setDateFormatOverride().DateAxis axis = (DateAxis) plot.getDomainAxis();axis.setDateFormatOverride(new SimpleDateFormat("HH:mm"));我不确定多线轴;或者,考虑 TextTitle 或 DateTitle ,如此处所示.I'm not sure about a multiline axis; alternatively, consider a TextTitle or DateTitle, as shown here. 这篇关于使用jFreePanel向折线图上的X轴添加年份的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-29 04:37