d3-flextree icon indicating copy to clipboard operation
d3-flextree copied to clipboard

How to use with React

Open Steve229 opened this issue 6 years ago • 2 comments

Trying to figure out how to use this in my React app. I've got D3 imported without problems, but can't figure out how to import/load the generated JS files with my component.

Any help would be appreciated!

Steve229 avatar Mar 05 '18 16:03 Steve229

I haven't used React. I'd be interested to hear if you still have problems with the newly-released version, 2.0.0. If so, post a link to a repo demonstrating the problem, and I'll take a look.

Klortho avatar Apr 05 '18 20:04 Klortho

I created a polymer based web component using d3-flextree. I am working on getting it converted over to react.

https://github.com/easymetahub/emh-d3-flextree

The only change that needs to be made to get it working proper under polymer is to edit node_modules/d3-flextree/src/flextree.js after the ’npm install'

Eliminate the import of version from package.json and hardcode the version number for flextree.version to “2.1.1”

lcahlander avatar Dec 31 '20 01:12 lcahlander