-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to align yAxis at zero point? #2989
Comments
because you are using different axises, so the axis range is different as well. you have to make sure both axis share the same axis range, like setting |
Hi @liuxuan30 maybe i didnt explain correctly. 2 scales but the zero must be on the same line. I dont want to make max and min the same because that would be the same as having just one yAxis. |
set both yAxis.axisMinimum = 0 |
My solution is to set /// 更新左右轴的值范围
/// 更新y轴值范围
|
I have the following line chart with 2 datasets. One data set is dependent on the left yAxis the other one on the right yAxis.
Now i want them both to have the zero value in the same line.
The rest of the chart doesn't need to be aligned, only the zero line.
How can i do that?
Code:
The text was updated successfully, but these errors were encountered: