Allow selection or zoom along only one axis?


By default plotly allow 3 type of zoom/selection : 1. box type, 2: only along vertical, 3:only along horizontal. Now for some reason I want that user can only select horizontally i.e. I can’t allow box or vertical selection. Is it possible with plotly?
I got this that do this for zoom but what about selection?