🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Notify when animation slider at certain value

Question on the chart animation with slider. I have events that tied to a time slider plot.

Based on this example, when it’s year ‘1972’ for example, I want to put out info about the event happened that year.

Can I set a condition to check if slider curretvalue is 1972, then notify other UI components to update? This slider event example seems to only update within plot components.

Thanks.

You can try accessing:

var gd = document.getElementById('graph')
gd._fullLayout.sliders[0].active

to grab the index of the active slider stop.