Fractal Pie Chart
This visualization extends the pie chart to display hierarchical data, where each slice expands into a sub-pie with an area equal to its own. The recursion creates a fractal-like structure, revealing multiple levels of the data's nested composition. Built with D3 v4 and the d3-component library, the code defines recursive `d3.component` types (`fractal`, `slice`, `connector`) to render SVG paths and lines. The data is generated procedurally with a function that subdivides values into fixed ratios, and parameters like `stemSize` and `stemWeight` control the layout of the recursive connectors.
AI-generated descriptionFinally after having sketched out this visualization idea in notebooks for years, it has come into reality. This example highlights the utility of d3-component for recursive visualization components.
The idea here is to extend the notion of a pie chart to represent hierarchical data. Each slice gets expanded into a "sub-pie" whose area is equal to the area of the slice. The sub-pie slices get broken out recursively.
Have some fun and play with it on Blockbuilder!
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2252732&f=0&b=16777215" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->