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

Positioning using screen points instead of xIndex #487

Closed
alessandroorru opened this issue Oct 20, 2015 · 1 comment
Closed

Positioning using screen points instead of xIndex #487

alessandroorru opened this issue Oct 20, 2015 · 1 comment

Comments

@alessandroorru
Copy link

Is it possible to scroll to a portion of the graph defined by a rect (or offset) in terms of screen points instead of data points?
I would like to position the viewport in a similar fashion of what I can do with a UIScrollView using the scrollToRect/scrollToOffset method.
The only scroll method I found is moveViewToX(xIndex: Int) but it needs data point, not screen points.

@alessandroorru alessandroorru changed the title Positioning using bounds instead of xIndex Positioning using screen points instead of xIndex Oct 20, 2015
@liuxuan30
Copy link
Member

Seems duplicate to #226
Feel free to reopen if not the same. In general, it requires you to manipulate the transformer, so far

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