Skip to content
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

Last item's visibility issue when zooming #18

Closed
fiftycy opened this issue Apr 10, 2015 · 5 comments
Closed

Last item's visibility issue when zooming #18

fiftycy opened this issue Apr 10, 2015 · 5 comments

Comments

@fiftycy
Copy link

fiftycy commented Apr 10, 2015

Hello. Am using the LineChartView and i have noticed that while zooming (pinch) the last value of the line is not shown. You can't even scroll to that value. What i do is am pinch zooming in and at a certain level of zooming i cant scroll to the last item value. The value is not visible in the screen except the line going to that value.

Additionally, can i draw the line skipping the first and the last value as a result my line will not touching charts edges?

@fiftycy fiftycy changed the title Last item when zooming Last item visibility issue when zooming Apr 10, 2015
@fiftycy fiftycy changed the title Last item visibility issue when zooming Last item's visibility issue when zooming Apr 10, 2015
@danielgindi
Copy link
Collaborator

Thanks I'll look into it!
@PhilJay are you aware of such an issue?

@PhilJay
Copy link
Collaborator

PhilJay commented Apr 11, 2015

I just tried in the example app and was unable to reproduce.
Could you describe your setup?

@danielgindi
Copy link
Collaborator

I found it! Fixed!

iOS: 48e8a99
Android: PhilJay/MPAndroidChart#544

@danielgindi
Copy link
Collaborator

It happend while zooming, but only in 1 frame out of ~20. It was a rounding issue. the X label's x is transformed through the matrix to pixel value, becomes 365.00000000006, and the contentRect ends on 365.

@fiftycy
Copy link
Author

fiftycy commented Apr 13, 2015

Yeah it was at very certain zoom level. I saw it very randomly !! keep up the good work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants