react-d3-graph icon indicating copy to clipboard operation
react-d3-graph copied to clipboard

Support for d3 v6

Open Tom-Davidson opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. On initial testing it's mostly the zoom and drag stuff that doesn't work because the nodelist isn't passed, not sure if that's because some events have had a breaking change. I appreciate v6 is only a week old at this point so a feature request rather than a bug. It stumped me for a while why it wasn't working for me as d3 is a per dependancy and I didn't read the version requirements (silly me). Raising this for visibility.

Describe the solution you'd like Support for the v6

Describe your use case Ongoing support for d3

Describe alternatives you've considered Have pinned d3 for the moment but for onwards compatibility with the key dependancy.

Additional context none

Tom-Davidson avatar Sep 01 '20 11:09 Tom-Davidson

What version of d3 did you pin? I am having issues with v6.1.1 (which is v6)

gargakshit avatar Sep 09 '20 12:09 gargakshit

I pinned 5.16.0 of d3 which seemed to be the last of the 5.x series.

Tom-Davidson avatar Sep 09 '20 13:09 Tom-Davidson

Thank you, @Tom-Davidson! I've been trying to figure out the source of Uncaught TypeError: _d3Selection.event is undefined errors that only seemed to occur when zooming via mouse wheel, even though our zoom-related config didn't differ from the defaults. Downgrading to d3@^5.16 solved the issue.

craigpalermo avatar Oct 19 '20 17:10 craigpalermo

i downgraded it to 5.16 and doesnt work. my package.json "d3": "^5.16.0", "d3-drag": "^3.0.0", "d3-force": "^3.0.0", "d3-shape": "^3.1.0", "d3-zoom": "^3.0.0", "react": "^18.2.0", "react-d3-graph": "^2.6.0",

JaviCodess avatar Jul 27 '22 07:07 JaviCodess