danielcaldas / react-d3-graph

Interactive and configurable graphs with react and d3 effortlessly
https://danielcaldas.github.io/react-d3-graph/sandbox/
MIT License
819 stars 233 forks source link

Using d3 6.3.1 and zoom/drag problems (Supporting d3 v6.x + @types/react-d3-graph for TS) #434

Open mehdy-karimpour opened 3 years ago

mehdy-karimpour commented 3 years ago

Describe the bug

  1. As you know, d3 from 6 version has removed d3.event global, then zooming produces an exception "Cannot read property 'transform' of undefined" because it uses var transform = _d3Selection.event.transform;(First image)

  2. Dragging produces "Cannot read property 'undefined' of undefined" exception(Second image)

To Reproduce Steps to reproduce the behavior: Use zoom/drag functionalities

Expected behavior Zooming in/out with-out exception

Screenshots image image

Environment:

Additional context Related to issue #365 and Pull request #380

cooms13 commented 3 years ago

Good afternoon. I was just checking on the expected timeframe for this fix. We are experiencing the same issue as described.

hizneway commented 1 year ago

Has anyone found workarounds for this issue?