Open parsasaei opened 1 year ago
Hi, as commented on Observable it's not possible to do it directly.
We'll have to reimplement
This function https://github.com/bumbeishvili/org-chart/blob/94023f15884cc64b3e8c80e09bc29b7edaf948ee/src/d3-org-chart.js#L757
And this function https://github.com/bumbeishvili/org-chart/blob/94023f15884cc64b3e8c80e09bc29b7edaf948ee/src/d3-org-chart.js#L798
To be able to accommodate that layout
@bumbeishvili
Thank you.
I couldn't find how to pass root element to calculateCompactFlexDimensions
function.
Can you give me a simple example with using pure javascript?
I used d3-org-chart2.js
@parsasaei I think you have to copy and change the source code itself
@parsasaei I think you have to copy and change the source code itself
@bumbeishvili No I don't changed the source, I used the source, used in this example links in here: https://www.npmjs.com/package/d3-org-chart
I mean, you will need to use and modify the source code itself (it's just a single class), instead of loading the chart from NPM, otherwise I can't see how it can be implemented. Even then, it won't be easy
I used d3 OrgChart and implemented my code as below:
I want to active some nodes on compact style with checking some flags and some other nodes have non-compact style like below: How can to do like this 👆🏻?