Hi there,
Is there any way I can know when rangeslider is changed and get the selected range of slider or run some function after slider changed?
Code Examples: https://codepen.io/zhaolian-zhou/pen/qJjJRQ.
In this example, I want to run some function using the updated x axes range after I change the range slider.
Thanks very much.
Listening to plotly_relayout
should do the trick though this bug https://github.com/plotly/plotly.js/issues/2216 might make it a little tricky.
Thanks very much etienne.
I did it by listening to mouseenter
and mouseover
events of rangeslider
class, and get the xaxis.range
information from chart.layout
. Kind of tricky.
Will try your solution.