I am in need of a d3 tree structure that looks like this.
https://i.sstatic.net/X6U3u.png
There are two key points to understand from the image above:
Headers will have multiple parents(wells).
I need to be able to drag and drop links connecting wells to headers and other headers.
To achieve this, I have added both wells and headers as children of fields. I have also given extra depth to header nodes so they appear on different lines than wells. To accommodate multiple parents for headers, I utilize a method to create links by specifying the source and target nodes. You can view an example here: https://i.sstatic.net/1BIOo.png
You'll notice that the depth has been set for RK Battery, but since it is a child of RK Field, its x and y positions are based on the position of wells under RK Field. I want to assign custom positions for batteries and have their children positioned relative to them. Is this achievable?