Enable only Square selection Zoom on the graph

We don’t expose that option at the moment.

If you really want to restrict selections to squares, you could always fork the plotly.js repo, modify this constant and build your own personal plotly.js.