-
-
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
Extending lines between data points when zoomed and panning #330
Comments
Did you modify |
Hey, I have fixed the issue, I haven't checked it into github, since I'm not too sure what the ramifications are. But below is the description of my fix: BEFORE:
AFTER:
So I added the follow functions to ChartDataSet class to give me the entry before the first visible entry and the entry after the last visible entry.
Then I changed the drawLinear function to this instead:
It'll be great, if you guys can apply the changes the library if it doesn't break anything else. |
@micnguyen try it out! @kwoylie you could raise a PR and let @danielgindi has a review. |
@liuxuan30 @kwoylie fix does indeed fix this issue as well as #130. The core problem at hand is when the viewport changes, the data points no longer exist and there is funny rendering issues that come with that. Admittedly, this does come at a performance hit as it's looking at a much larger range of values, but the hit is temporarily worth the frequent and visible visual glitch. |
I saw another issue is the line is broke when scrolling in my project :( today Seems we need a enhancement. |
Well I don't see this anymore, so I guess we fixed it in a commit somewhere :-) |
Hi,
I've implemented a "time-series" graph by basically creating a chartview with lots of intervals (where each interval is 1 minute) ie: there is a data point at interval 1 and interval 61 if they are 1 hour apart.
I've noticed when I zoom into some points and panned across that the line connecting 2 data points will extend out beyond the limits of the start/end points of the line even if the data-points have disappeared form the view port.
I have made a recording of the bug in action: http://gfycat.com/SarcasticCarefreeGalapagostortoise
The text was updated successfully, but these errors were encountered: