...
/Styling: Changing the Nodes to Different Shapes
Styling: Changing the Nodes to Different Shapes
Learn how you can customize the nodes of your tree to different shapes in your tree diagrams.
We'll cover the following...
There is more than one way to change the nodes to different shapes, but perhaps the simplest way to do this is to replace the section of the JavaScript that appends the circle with one that appends a symbol from D3’s symbol generator.
Symbols in D3
There are six ...