HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.

Home Page:http://www.humblesoftware.com/flotr2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto rescale axis on range change (x/yaxis.min/max)

Programie opened this issue · comments

I'm trying to auto rescale my chart once I select a range using the mouse.

The Y axis should be recalculated automatically based on the displayed range.

Example: http://www.humblesoftware.com/flotr2/index#!basic-time

If you select a range where the Y axis data is between 0 and 40 the axis should scale to that range instead of keeping the full range.

Example to reproduce: http://jsfiddle.net/ZFBj5/981/