holtzy / D3-graph-gallery

A collection of simple graphics made with D3.js
https://www.d3-graph-gallery.com
MIT License
790 stars 237 forks source link

FIX #28 UNNECESSARY TRANSFORM #33

Open tligier opened 3 years ago

tligier commented 3 years ago

What?

Fix #28 Unnecessary translate in zoom and pan example. The "translate" attribute is not only unnecessary, it actually move the event zone away from the graph.

Why?

Resolve issue #28

How?

Remove the unnecessary "transform" attribute

Screenshots

Before:Screenshot 2020-10-01 at 22 15 56 After:Screenshot 2020-10-01 at 22 16 41