Tree Network in D3 with custom HTML <p>I am trying to draw a tree like a path in d3 but I haven't been able to make it work. The idea is to have nodes with custom HTML in them. The paths start at the same node and end in the same node. How can I draw this with d3?</p> <p><a href="https://i.stack.imgur.com/ttriI.jpg" rel="nofollow noreferrer">This is the desired output</a></p> <p>Some nodes repeat themselves in different places. For example D happens after C and it also happens after A. Also C happens after A and after D. The start and end is always the same but everything in between is not.</p> <p>I tried using treant JS and D3 but so far nothing I have done has worked.</p> <p>Thanks</p>