当前位置: 代码迷 >> J2SE >> jfreechart 曲线图横轴显示有关问题
  详细解决方案

jfreechart 曲线图横轴显示有关问题

热度:176   发布时间:2016-04-24 17:51:16.0
jfreechart 曲线图横轴显示问题!
我用jfreechart   做曲线图,由于横轴坐标值太长,现在想让坐标倾斜显示.怎么做好,我都在网上找一天了,没有结果.哪位兄弟有做过啊?

------解决方案--------------------
CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setCategoryLabelPositions(
CategoryLabelPositions.createUpRotationLabelPositions(
Math.PI / 6.0));
让label以30度倾斜