简体   繁体   中英

overlap in String X-Axis in jfreeChart

I use jfreechart to draw chart. type of X-axis in chart is string type.When the number of data grows occurs overlapping in x-axis label. my question is how can i control overlapping in String type x-axis. for integer or dateTime type there are solution and methods but for string i have found nothing for string type x-axis. If there is a way please help me.thank you

One simple way might be to turn your X-axis labels vertical instead of horizontal. I've used this to prevent overlapping in the labels before.

domain.setVerticalTickLabels(true);

您可以在域轴上使用setVerticalTickLabels(true) ,如本示例所示。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM