Styling: Changing Node and Link Colors

Learn how to customize the colors of the nodes and links of your tree diagram.

Changing node and link colors

The nodes in a tree diagram are objects that exist to provide a representation of the structure of data. But on a tree diagram, they should also be viewed as an opportunity to encode additional information about the underlying data.

From the horizontal example shown, we have encoded a certain amount of information already. The position of the text relative to each node is determined by whether or not the node is the parent of another node (if it’s a parent, it’s on the left) or a child that is on the edge of the tree (in which case, it is on the right of the node).

Get hands-on with 1400+ tech skills courses.