Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不知道如何只隐藏 y 轴。我希望数字保留但删除线。你知道怎么做吗?
BR
您可以通过这种方式隐藏两个轴:
renderer.setShowAxes(false);
您可以独立隐藏网格:
renderer.setShowGridY(false);
如果以上还不够,可以设置Y轴不可见等边距,将Y轴标签向右移动:
renderer.setMargins(new int[] {20, -1, 10, 20}); renderer.setYLabelsAlign(Align.LEFT); renderer.setYLabelsPadding(-10);