版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/86656891
问题如下
原因
那是你的横坐标字符太长太多无法容下
可以改变横坐标字符显示的方向来解决
解决方案
CategoryPlot plot = (CategoryPlot) chart.getPlot();
CategoryAxis categoryAxis = plot.getDomainAxis();
// 横轴上的 Lable 90度倾斜
categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
解决问题之后的效果