Plotly.js: restrict scroll zoom to x or y axis

Created on 5 Oct 2016  路  4Comments  路  Source: plotly/plotly.js

I think it would be useful if plotly allowed users to pin scroll zoom to the x or y axis. I think this pairs really nicely with #1006, particularly with charts like time series -- I've got a preliminary implementation here if this feature is of interest ! https://github.com/CalvinFernandez/plotly.js/tree/cfernandez/bindZoomToAxis

Most helpful comment

Already possible here: http://codepen.io/etpinard/pen/kkvZKy

All 4 comments

Already possible here: http://codepen.io/etpinard/pen/kkvZKy

馃憤

Here too, thanks for bringing this up.

For folks who find this issue by Googling, this capability is possible through layout.yaxis.fixedrange = True (or layout.xaxis.fixedrange = True)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonmmease picture jonmmease  路  3Comments

WG- picture WG-  路  3Comments

tim-sauchuk picture tim-sauchuk  路  3Comments

bryaan picture bryaan  路  3Comments

n-riesco picture n-riesco  路  3Comments