Help with color in Radial Tidy Tree

Dear all,
I am just starting with D3. And i meet problem with Radial tidy tree
Can someone help me add the short color code to change the color of points on the graph in the example link: https://observablehq.com/@d3/radial-tidy-tree

Regards,
Thien

Hi Thien,

If I understand your question correctly, what you’d need to do is change this line:

      .attr("fill", d => d.children ? "#555" : "#999")

… to replace “#999” with the color you want to use for the leaf nodes, and “#555” with the color you want to use for all the other nodes.

Hope that helps,
Kerry

1 Like

Thank you