✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Trigger Slider event

I am using the basic slider example to show my scatterplots with time slider.
Is there a way to capture the events on slider change ? I would like to call my APIs and do some other operations (not related to plotly chart).
Have seen solutions adding new trace, but my problem is much simpler that I need to call my function on slider change event.


You can try something as follows:

Plotly.newPlot(plottingDiv, dataToPlot, plottingLayout)
plottingDiv.on(‘plotly_sliderchange’, function (e) {
var stepLabel = e.step.label
// do other things needed