Create an event for zoom (drag) to understand the corners of the drawn rectangle #825
Unanswered
francescopenna
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
after looking into the documentation I believe there is currently no way to achieve what I am looking for.
Basically, while performing a dragging zoom on a plot it would be interesting to have an emit that gives information on the portion of the plot that is currently being zoomed.
In the example image the output could be, for this instance:
{ x: { min: -40, max: 40 }, y: { min: -40, max: 40 } }
If this cannot be made into a full feature do you believe there could be a chance to create a custom plugin? As far as i know it is not possible in chart.js to understand the drawn portion of a plot during a onmousemove event, but it is possible to understand the point nearest to where the user clicked.
Thank you all in advance!
Beta Was this translation helpful? Give feedback.
All reactions