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

Line Chart : Can I drag a vertical line to any point on the screen and get values? Instead of individual touches #1246

Closed
VidhiMittal2012 opened this issue Jul 13, 2016 · 3 comments

Comments

@VidhiMittal2012
Copy link

Hi Am working on line charts and wish to have a functionality where the user can simply drag a line on the chart to the point he wants to and that should update a label instead of a single touch. is this possible?

@liuxuan30
Copy link
Member

you want drag a line to another place? This seems a standalone logic to do so. Think about the UICollectionViewCell dragging to reorder. Is that the similar behavior?

@VidhiMittal2012
Copy link
Author

screen shot 2016-07-14 at 2 36 57 pm

This is what I mean. Like the vertical indicator I should be able to drag and the chart itself should scroll. The workarounds i've tried so far do one of them but not both...

@liuxuan30
Copy link
Member

liuxuan30 commented Jul 15, 2016

the scroll behavior is already supported. By default, the chart shows all the values so it can't scroll. If you zoom in, it can scroll. You can also use setVisibleXRangeMaximum and setVisibleXRangeMinimum at first, so you can scroll without a manual zoom in.
You can also call moveViewToX

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

2 participants