OrgChart JS is a simple, flexible and highly customizable organization chart plugin for presenting the structure of your organization and the relationships in an elegant way.
I have another question. I am trying to make an auto width for each node according to the text inside the node.
Now, i encounter following issue.
I am using blazor. So when i pass my data for loading the chart like this from blazor to the js file
And request the data in my js file like this
And print all the nodes (var allNodesRect = document.querySelectorAll('[data-n-id] rect');) it is all null
Now when i hardcode the data in my chart like this, it works. So i don't really know what i am doing wrong here.
This is my code block for the auto width of the node
Hi!
I have another question. I am trying to make an auto width for each node according to the text inside the node. Now, i encounter following issue.
I am using blazor. So when i pass my data for loading the chart like this from blazor to the js file And request the data in my js file like this And print all the nodes (var allNodesRect = document.querySelectorAll('[data-n-id] rect');) it is all null
Now when i hardcode the data in my chart like this, it works. So i don't really know what i am doing wrong here.
This is my code block for the auto width of the node
Thanks in advance!