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.