[英]change x-axis position in BarChart
How to change x-axis position from the bottom to 0th Y-axis value in BarChart ? 如何在BarChart中将x轴位置从底部更改为第0个Y轴值?
I have bar chart with some negative values right now, x axis is starting with lowest negative value of y axis. 我现在有一些负值的条形图,x轴从y轴的最低负值开始。 I want to change that position to Zero value of y-axis. 我想将该位置更改为y轴的零值。
currently I have this 目前我有这个
I want 我想要
-10 -10
Please Help! 请帮忙!
If I understand you correctly, try something like this: 如果我对您的理解正确,请尝试以下操作:
NumberAxis yAxis = (NumberAxis) xyplot.getRangeAxis();
yAxis.setLowerBound(0);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.