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

Is it possible to zoom into a range of values? #3639

Closed
tundsD53 opened this issue Sep 17, 2018 · 2 comments
Closed

Is it possible to zoom into a range of values? #3639

tundsD53 opened this issue Sep 17, 2018 · 2 comments

Comments

@tundsD53
Copy link

Is it possible to set the chart zoom to a range of values within the dataset? So currently we have a chart that can display close to 100 values within it. What we're trying to achieve is the ability to zoom into a range of values i.e. The first 12 values within the dataset and then the user is able to scroll in either direction to see the remaining values within the chart.

We've currently tried using the setVisibleXRangeMaximum function but that only seems to display the first value within the chart rather than 12. And this may be because the data that we receive from he service can be unpredictable i.e. one value may be 1000 and the next maybe 100,000.

@liuxuan30
Copy link
Member

take a look at setVisibleXRange

@xsleonard
Copy link

xsleonard commented Oct 17, 2020

If anyone is looking for a working solution:

https://gist.github.com/xsleonard/92359a239aef0bdd48a7df7aa966df5a

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