JFreeChart刻度标签被切断 [英] JFreeChart tick label cut off
本文介绍了JFreeChart刻度标签被切断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用JFreeChart绘制图表时,如果在水平轴的末端附近有一个刻度线标签,则该标签会在图像的边界处被部分切除,例如:
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?
谢谢
推荐答案
假设 setUpperMargin()
就足够了.
Assuming a DateAxis
, the parent ValueAxis
method setUpperMargin()
may suffice.
这篇关于JFreeChart刻度标签被切断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文