-
-
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
y-labels position is wrong,when i set autoScaleMinMaxEnabled = YES #2379
Comments
can you explain |
in the YAxisRenderer.swift file, when show the view for the first time, the positions[i].y 's value is inaccurate in function drawYLabels. then,when i touch view or zoom the view,the positions[i].y 's value will be right. I don't know how the internal implementation,I can't find the method to solve this problem |
I can't tell what's wrong, but you can check some places: if _autoScaleMinMaxEnabled
{
autoScale()
}
For y axis labels, take a look at |
BTW, are you able to reproduce it with ChartsDemo? |
@liuxuan30 i fixed YAxis labels position and cooperate with LimitLine。values is not corresponding, |
hi @liuxuan30 seam like after adjust the viewport -- either scale or realtime feed in , although the Y axis's max and min value recalculated, but the Y axis not refresh or redraw, if you manually scale the view the Y axis will adjust correctly. |
@KevinZK possible you should parse all the configuration flag initialized or changed between here. |
i set autoScaleMinMaxEnabled = YES ,scaleYEnabled = NO and scaleXEnabled = YES, i set "setVisibleXRangeMaximum"and "setVisibleXRangeMinimum" after it have data. y-labels position is wrong, i must touch View or scale view to make it correct position。i don't know is this a bug, or i don't use it correctly。
Look forward to your reply
The text was updated successfully, but these errors were encountered: