-
-
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
setVisibleXRange doesn't work #2460
Comments
wow, I actually started to write ios a few days ago. the issue is probably dificult to me. |
I posted a question on Stack Overflow about this issue. |
setVisibleXRangeMaximum is working, I labeld bug because other issue. |
I just found out, ordering matters for this to work. You need to call setVisibleXRangeMaximum after chartView.data = data or notifyDataSetChanged |
use
|
thanks ) |
have to close this since too old |
In my code, I wrote
but I got
After I remove "lineChart.setVisibleXRangeMaximum(20.0)" and I got
So if I want to set visible x range and the func setVisibleXRange doesn't effect data, how can I do, could anyone help me?
And I try to do some same change in Charts-Demos. In file LineChartTimeViewController.m, line 155 I add "[_chartView setVisibleXRangeMaximum:20.0];" but it also doesn't work. Are there some errors in my code?
The text was updated successfully, but these errors were encountered: