Home:ALL Converter>Recover scale, when I make a custom zoom

Recover scale, when I make a custom zoom

Ask Time:2012-09-22T07:46:23         Author:Cristian G

Json Formatter

I have a problem, when zooming with a rectangle who drew on the chart, it should make a zoom into the selected area. The error occurs when I try to return me zooming out, this should work but for some reason this is locked and I can not return to the starting position.

Here is the code to perform the zoom with the rectangle, first pressing the shift key and click to draw down the area on which you need to perform zoom in.

http://jsfiddle.net/cristian540/VFqeV/8/

Author:Cristian G,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12539498/recover-scale-when-i-make-a-custom-zoom
yy