Live data from Hacker News

Fixing the D3-zoom API for my use-case

blog.scottlogic.com

1–6 of 6 posts

Re: Fixing the D3-zoom API for my use-case

#2
The first "final" chart pans and zooms wrong. It appears that it pans roughly half the distance that I move the mouse and scrolling to zoom zooms on a point that isn't the mouse.

However the d3fc-zoom chart near the bottom works perfectly.

Re: Fixing the D3-zoom API for my use-case

#4
post #2

The first "final" chart pans and zooms wrong. It appears that it pans roughly half the distance that I move the mouse and scrolling to zoom zooms on a point that isn't the mouse. However the d3fc-zoom chart near the bottom works perfectly.

they all work fine for me.

Re: Fixing the D3-zoom API for my use-case

#6
post #2

The first "final" chart pans and zooms wrong. It appears that it pans roughly half the distance that I move the mouse and scrolling to zoom zooms on a point that isn't the mouse. However the d3fc-zoom chart near the bottom works perfectly.

Thanks for the feedback. Depending upon the devicePixelRatio, interactions with the first chart would misbehave. I've just pushed a fix to the code, and updated the post, which should rattle through the various CDNs before too long.