Open NathanGavenski opened 2 years ago
Hey Nathan, I was able to resolve that same issue by downgrading D3 to v5 after finding this StackOverflow thread: https://stackoverflow.com/questions/63693132/unable-to-get-node-datum-on-mouseover-in-d3-v6/63693424#63693424
I don't have a proper fix yet for how to resolve it in the dTree library itself as I just started learning this lib and d3!
Hope that helps a little! Bill
If you are using the D3 v6 , just change the code of the builder.js
.on('zoom', function (d) { g.attr('transform', d3.event.transform) })
to
.on('zoom', function (event, d) { g.attr('transform', event.transform) })
Hi, I'm trying to integrate dTree with React and I'm facing a bug that I can't seem to find the cause.
Here is a snippet of my code:
It gives me the error:
I'm importing d3 and lodash on my index.js
What am I missing?