JFreeChart tick label cut off

五迷三道 提交于 2019-12-02 01:32:12

问题


When rendering a chart using JFreeChart, if there is a tick label near to the end of the horizontal axis the label is partially cut off at the border of the image, eg:

 |
 |
 +----------+------------------+-
        01 Jun 11          01 Jul     <--- missing year

Is there any way that I can prevent this? It is possible to add some kind of margin or similar?

Thanks


回答1:


Assuming a DateAxis, the parent ValueAxis method setUpperMargin() may suffice.



来源:https://stackoverflow.com/questions/7851540/jfreechart-tick-label-cut-off

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!