I suspect there is a simple solution to this problem I'm having, but I haven't been able to figure it out. Any help is greatly appreciated. Here's what's up:
I'm using the Diagram platform to make a Family tree of Parent and Child data in a data table. See attached sample data set. Below, I wrote a simple script to generate the diagram. Note, this platform is typically used to make "fishbone" diagrams, but you can change the type of the diagram to "Hierarchy" to make a tree -- which is exactly what I want! The attached code below will work perfectly for datasets where there is only one tree.
However--and this is my problem--sometimes I have datasets with multiple trees. The attached dataset is one such example. When I run the same code, I get a diagram where only one tree is changed to "Hierarchy" and while the other two are in "Fishbone" style--see the attached picture.
How do I adjust this code so that all trees are "Hierarchy"?