Thanks for the info! I wasn't aware that it was only usable for specific data. That is a pitty. Unfortunately I have no time to create a generic solution, since I'm busy with other Node-RED stuff at the moment...
But I see that already a lot of ingenius minds are already involved in this discussion. Perhaps they can create a more reusable version of it
Hi
Andrei - I already moved forward with adding code computeSvgSizeFromData
to make the size change as functions of tree size, so meanwhile keeping my SVG creation.
took your the color node "black" solution. tree.txt (13.6 KB)
Bart
I made the tree much more general
with ability to read incoming msg
and changing SVG size as tree size (input data)
I am totally new to javascript , so I googled for those changes
if there is a better way, you are welcome
@natanel - I just imported your latest flow and noticed that if I click on one of the children nodes (ID 11, VRN 1), the whole tree collapses and the remaining node moves to the top left with text overlaying itself
If I click that node, it moves down but nothing else is shown
If I click again the tree expands but 'ID 11, VRN 1' is colapsed
It is working pretty well. Nice touch adding the lime color to show a collapsed node.
All in all it is very impressive what you have achieved.
I am curious, what is your use case ? How do you use this solution and what kind of problem it solves for you ? You mentioned eeprom data... is this some kind of network monitoring ?