๐ Treemap vs Sunburst – Storytelling with Animation
๐ก Click "Next Step" to see how data evolves across hierarchy levels.
๐ฌ Interactive Story
๐ Switch to Sunburst Animation
๐ How This Storytelling Works
- Step 1 → Shows root (Total)
- Step 2 → Adds main categories
- Step 3 → Introduces subcategories
- Step 4 → Full hierarchy revealed
๐ก This technique helps users understand data progressively instead of overwhelming them.
๐ป Code Example
Plotly.animate('chart', {
data: [{ type: 'treemap', labels: labels }]
});
๐ฅ CLI Output
$ python animate.py Step 1 loaded... Step 2 loaded... Visualization complete.