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

Select items from javascript

Hi all,
Is there a way to programmatically select some items in plot from javascript without using box or lazo tools?
And the same for zooming or panning in plot without the toolbar?
I would like to have control on plot behaviour from javascript without the user interaction.
Best Regards.
Enrico Ferreguti

that one is easy: just use Plotly.relayout('graph', 'xaxis.range', [/* new range */]). See how we do it here.

this one not so much, you can try mocking mouse events. See how we do it here

Thanks Etienne, I will have a deep look.

Hi all, hi Étienne,

just wanted to know if the situation changed regarding the first question or is it still necessary to mock mouse event ?