-
-
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
moveViewToX #258
Comments
You are passing an invalid index |
My data set has up to 1100 data points, i want to move to the last index. Shouldn't this be the right value? if not, how can i get it? |
1099 On Thu, Jul 30, 2015 at 3:32 PM, donaldkingdt notifications@github.com
|
How is that about? pls explain as this should be dynamic. 1099 doesn't work |
The first item is at 0 |
Exactly my point. The last item should be at lastItem.count right? |
No. If you have two items, and first one is |
self.chartView.setVisibleXRangeMaximum(20) self.measurementEntries.count has 1136 entries now but I don't want to show all of this on the chart as it would be just an overkill. I only want to show a maximum of 20 at anytime but initially, scroll to the last value in the index. does this look right? |
Fixed. Had to call self.chartView.moveViewToX(self.measurementEntries.count - 1) in ViewDidAppear(). Cheers Daniel. BTW, @danielgindi I sent you a PayPal donation yesterday :) |
Had to do similar thing in Happy to share more details about the issue if needed. |
I've the same issue.
|
the thing is from what I noticed that you will get another plotted value to the right side, also you should change the order of the lines from: to:
|
Hi,
I'm trying to set the chat to scroll to last value in data set X using moveViewToX(entries.count) but this doesn't seem to move to the last value. Any Ideas?
Cheers
The text was updated successfully, but these errors were encountered: