bkrem / react-d3-tree

:deciduous_tree: React component to create interactive D3 tree graphs
https://bkrem.github.io/react-d3-tree
MIT License
1.07k stars 270 forks source link

Allow passing attribute fields to generateHierarchy #226

Open gdish opened 5 years ago

gdish commented 5 years ago

treeUtils.generateHierarchy doesn't take attribute fields, which means that if you are trying to load a flat array then you can't also load attributes

I'm using react-d3-tree 1.13.0

mehuljariwala commented 4 years ago

+1

mehuljariwala commented 4 years ago

same Problem

mehuljariwala commented 4 years ago

{ parent: 1, child: 2, attributes: { "FlatJSON Attribute A": "xyz", "FlatJSON Attribute B": "pqr" } }