JFreeChart:有没有办法在XYPlot中的两行中绘制长刻度标签

Ale*_*ets 3 label jfreechart

我有遗留代码示例,它使用JFreeChart和XYPlot.现在我正在为该代码制作i18n,大多数非英语字符串比英语字符串长得多.我用google搜索包裹字符串的方法.没有成功.请帮忙!

Jak*_*iuk 11

尝试使用setMaximumCategoryLabelLines方法CategoryAxis,例如:

CategoryAxis domainAxis = plot.getDomainAxis();
domainAxis.setMaximumCategoryLabelLines(3);
Run Code Online (Sandbox Code Playgroud)