-
-
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
Chart Line vanishes on pinch to zoom #63
Comments
Can you record what you are experiencing? (Using iPhone Simulator, iTunes or whatever...) It could be theoretically lines that are skipped since being out of the viewport anyway, but that shouldn't happen. So maybe floats that are too big? (We're planning to move to Doubles anyway... #62 ) |
Yes, recorded the screen of my iPhone using QuickTime Player. |
I can't make it happen the same way, it works flawlessly, except for one bug with Cubic lines which I'm fixing now. |
Maybe try the latest fixes? I don't know if they affect you in some way, but it doesn't hurt to try! |
I had the issue from the very first time I implemented it with my source data. A friend of mine (Testflight beta tests) reported the same issue. Please find my sample data attached, maybe you can use it to reproduce the issue: http://www.codeshare.io/zdFG9 |
I just recognized that the xIndex of the ChartDataEntries is not unique (see line 191). Might this be the source of the error? |
Just tested the above. Making the xIndex a unique integer seems to improve the situation somewhat, however the chart lines still vanish in certain time intervals. By the way - would be good if xIndex could be a Float or Double, this would make it more flexible for relative values (currently my chart is an approximation of the next integer xIndex for a yVal). |
A) I will test your code soon- it has nothing to do with the x indexes On Mon, May 4, 2015 at 10:31 PM, Josef [email protected] wrote:
|
Well I can't test your code as I don't have the datasets and I sure am not On Mon, May 4, 2015 at 10:32 PM, Daniel Cohen Gindi [email protected]
|
It seems as it is now solved: I applied the approximation to the yVals instead of the x indexes. The chart is now no longer vanishing. |
I experienced that when you zoom in on a chart using a pinch gesture, the chart lines are sometimes vanishing (no chart lines displayed). The data source however still contains several values.
Has anyone else experienced this issue?
The text was updated successfully, but these errors were encountered: