anirudhb029 / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Incorrect zooming when using dual Y axes #135

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using version 0.5 of FLOT and any browser, believe that there is an error 
in FLOT causing improper zooming when using dual Y-axes.   Have tracked 
this down to the following @ line 1841:

            if (axes.xaxis.used)
                r.xaxis = { from: axes.xaxis.c2p(x1), to: axes.xaxis.c2p
(x2) };
            if (axes.x2axis.used)
                r.x2axis = { from: axes.x2axis.c2p(x1), to: axes.x2axis.c2p
(x2) };
            if (axes.yaxis.used)
                r.yaxis = { from: axes.yaxis.c2p(y1), to: axes.yaxis.c2p
(y2) };
            if (axes.y2axis.used)
                r.yaxis = { from: axes.y2axis.c2p(y1), to: axes.y2axis.c2p
(y2) };

When we have dual Y axes, r.yaxis is being overwritten by Y2's data.  
Believe the code for the last line of the above should read:
                r.y2axis = { from: axes.y2axis.c2p(y1), to: axes.y2axis.c2p
(y2) };

Thanks,
-Jim

Original issue reported on code.google.com by jimma...@gmail.com on 16 Mar 2009 at 1:38

GoogleCodeExporter commented 9 years ago
It appears that you have fixed this in the r109 patch.   It looks as if this 
issue/report can be closed.
Thanks!
-Jim

Original comment by jimma...@gmail.com on 21 Mar 2009 at 9:38

GoogleCodeExporter commented 9 years ago
Yes. I need to make a new release soon.

Original comment by olau%iol...@gtempaccount.com on 22 Mar 2009 at 12:21

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 7 May 2012 at 11:29