On Sun, Aug 7, 2011 at 5:24 PM, Ammar Yasir <ammaryasir.88@gmail.com> wrote:


On Sun, Aug 7, 2011 at 5:03 PM, Tyron Madlener <tyronx@gmail.com> wrote:
On Sun, Aug 7, 2011 at 8:17 AM, Ammar Yasir <ammaryasir.88@gmail.com> wrote:
> Hi,
>
> I guess there is no inbuilt panning feature available for Highcharts yet. I
> also looked around in the Highstock demos (which has pan feature) on whether
> we can use the feature from there. The problem is that the zoom feature in
> Highcharts uses the click and drag mouse wheel event, so we cant use those
> events for pan as Highstock does. If we want to have a pan feature with
> inbuilt zoom of Highcharts, we would have to use a button panel or similar.
> Otherwise write our own zoom and pan feature?
>

What about that code snippet I wrote to you? (http://jsfiddle.net/HXUmK/5/)
That seems to work really well.

Yes I'm integrating it. Will see how it works out.
Hi,

I considered the snippet Tyron suggested (and pushed my work). It wasn't working really well so I changed the equations for setting of axis extremes. The mousewheel zoom works okay but the panning feature I'm not fully convinced. The logic seems to be right (readjusting the axis extremes on mouse drag position) but it seems to very sensitive. I'll try to look more into the panning but in my opinion the inbuilt zoom feature works better than this.

 

> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>
>

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Phpmyadmin-devel mailing list
Phpmyadmin-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel