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

Document how to get new zoomed data range #345

Closed
JMRCGuedes opened this issue Apr 24, 2020 · 2 comments
Closed

Document how to get new zoomed data range #345

JMRCGuedes opened this issue Apr 24, 2020 · 2 comments

Comments

@JMRCGuedes
Copy link

JMRCGuedes commented Apr 24, 2020

Hello guys!!

I'm trying to get the range x-axis values when i apply the zoom by dragging in the chart like in the following example:

image

@JMRCGuedes JMRCGuedes changed the title Zoom dragged range values Zoom dragged x-axis range values Apr 24, 2020
@poiuytrez
Copy link

This is how I found what is selected:

onZoomComplete: function({chart}) {
              console.log(`I was zoomed!!!`);
              const start = new Date(chart.chart.boxes[2].min);
              const end = new Date(chart.chart.boxes[2].max);
              console.log(start);
              console.log(end);
            }

@etimberg etimberg changed the title Zoom dragged x-axis range values Document how to get new zoomed data range Apr 25, 2021
@kurkle
Copy link
Member

kurkle commented Nov 16, 2024

chart.getZoomedScaleBounds() was added in #780

@kurkle kurkle closed this as completed Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants