bkrem / react-d3-tree

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

Is it possible to add text to the link between 2 nodes? #464

Open paulbarr opened 1 year ago

paulbarr commented 1 year ago

Thank you for taking the time to report an issue with react-d3-tree!

Feel free to delete any questions that do not apply.

Are you reporting a bug, or opening a feature request?

Feature Request

Is it possible to add text to the link between 2 nodes

dOhx commented 1 year ago

i think no. +1 need for me

wishzx commented 1 year ago

I'm also looking for a library that provide this feature.

The TreeLinkDatum contains only two properties which are the source and target Node so I don't think it is possible yet. https://bkrem.github.io/react-d3-tree/docs/interfaces/_src_types_common_.treelinkdatum.html

Does anyone have an idea on how to add this feature easily or can recommend another library that can customize the text on a link ?

nitish2580 commented 6 months ago

I'm also looking for a library that provide this feature.

The TreeLinkDatum contains only two properties which are the source and target Node so I don't think it is possible yet. https://bkrem.github.io/react-d3-tree/docs/interfaces/_src_types_common_.treelinkdatum.html

Does anyone have an idea on how to add this feature easily or can recommend another library that can customize the text on a link ?

have you find any library that can add text between the prent and child node?

wishzx commented 6 months ago

I'm also looking for a library that provide this feature. The TreeLinkDatum contains only two properties which are the source and target Node so I don't think it is possible yet. https://bkrem.github.io/react-d3-tree/docs/interfaces/_src_types_common_.treelinkdatum.html Does anyone have an idea on how to add this feature easily or can recommend another library that can customize the text on a link ?

have you find any library that can add text between the prent and child node?

try this https://github.com/reaviz/reagraph