Set default collapse of TreeChart nodes
I’m using the TreeChart component from @carbon/charts-react
in my React application to display a hierarchical tree structure. The data for the tree is passed to the component via props, and it works perfectly fine with nested children.