This is the simplest sunburst diagram I could create. Let me know if you think I can make it tighter.
Build notes:
- It pulls data from a csv file. It uses d3.stratify() to reform links into a hierarchy. (NOTE: I ran into a challenge with
d.size
when moving from json to csv. Whilesize
is a feature of my data, I had to now access it fromd.data.size
.) - To differentiate between local variables and framework objects, I prefix variables with lowercase 'v'.
From https://bl.ocks.org/denjn5/973474e72ce17cfe20f8898f95eb03f7