日期:2014-05-20  浏览次数:20578 次

jfreechart 曲线图横轴显示问题!
我用jfreechart   做曲线图,由于横轴坐标值太长,现在想让坐标倾斜显示.怎么做好,我都在网上找一天了,没有结果.哪位兄弟有做过啊?

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