CSS zoom and mouse tracking

80 views
Skip to first unread message

Adam Pritchard

unread,
Oct 2, 2010, 3:22:00 PM10/2/10
to dygraphs-users
After applying the zoom style to a graph container, mouse tracking
(highlighting and zooming) seems to be broken -- but only
horizontally. It looks like the tracking is for the non-zoomed width.

So, for example, if you set zoom to 2.0 and you position your mouse
half way across the x-axis, you'll be highlighting the last data
point.

I would like to be able to use the zoom style to cheaply enlarge my
graphs, so I'd appreciate if anyone could tell me how to correct/work
around this. (Or let me know if it's just not possible, which is fine
too.)

Thanks in advance.

Adam

Dan Vanderkam

unread,
Oct 3, 2010, 9:11:31 AM10/3/10
to pritcha...@gmail.com, dygraphs-users
I had no idea this CSS rule existed. Apparently it's IE-only, so I'm not surprised that it breaks some things in dygraphs. Since this is non-standard, I have no plans to fix it.

  - Dan

Andrea Quintabà

unread,
May 18, 2015, 6:48:34 AM5/18/15
to dygraph...@googlegroups.com
Hi danvk,
i really need to use zoomed pages with dygraphs.. i know zoom is not standard but that's the only way i have to do that stuff.
I would try to implement a solution on my own but i don't know where to start (there should be a point in the code where the position of the click event relative to canvas is calculated but i cannot find where it is).
any help would be really really appreciated...
Regards
Reply all
Reply to author
Forward
0 new messages