Rotating Animated Fractal Pie Chart
This rotating animated fractal pie chart recursively subdivides each pie slice into smaller slices, creating a deeply layered, spiraling visual effect. The animation continuously rotates each level of the hierarchy, while scaling down slice size and stroke thickness through SVG transforms. The code uses D3 v4 with the d3-component library, building the structure via d3.pie, d3.arc, and d3.timer for the animation loop. The data is procedurally generated with fixed child ratios, and the rendering emphasizes aesthetic appearance over exact area preservation.
AI-generated descriptionmade at the Graphiques dégénérés meetup @ChambreBlanche http://www.chambreblanche.qc.ca/
An iteration on <a href='http://bl.ocks.org/curran/2aafab81bb2029e1f4f24d258b790ce4'>Fractal Pie Chart</a> where the scaling is done using transforms (so the outline thickness also decreases with depth) and with animation. This variation violates the condition that the area of each child should be equal to the area of the parent slice, for the sake of pretty appearance. This variation also has loads more pies, for the real "fractal effect"!
This is a stop along the way for trying to actually visualize data with this technique. The main problem with the first iteration is that pies overlap each other. This experiment shows that to minimize overlap, it looks like setting the largest slice at a 45 degree angle minimizes overlap.
Uses d3-component.
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2252722&f=0&b=16777215" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/57d3608636fa0515b5f1b84f606d939a'>Animated Fractal Pie Chart</a>