codeBarer
codeBarer

Reputation: 2388

Flot Disable panRange

How can I set Flot panRange so that I can only pan in x-axis and not y-axis? I tried setting panRange in the y-axis to the following but neither worked:

panRange: null panRange: none

I am using mouse's scroll wheel to zoom in and out.

Thanks

Upvotes: 0

Views: 389

Answers (1)

DNS
DNS

Reputation: 38219

Set the panRange to 'false' on the axis that you want to remain fixed.

Upvotes: 1

Related Questions