🌍 Public
Viewing a saved revision (read-only)
c1cbef40e8cd4a69bfd71e4e1465c173
Circles pack
A circle packing diagram displays a hierarchical dataset of celebrities, grouped first by category (Bollywood or TV) and then by gender, with each celebrity represented as a circle sized by their sample value. The visualization uses a `d3.pack` layout on a React component, computing a hierarchy via `d3.hierarchy` and `d3.nest` from a CSV file. Leaf nodes render celebrity photos clipped by their circle boundaries, while branch circles scale with the aggregate values and respond to mouseover events with a stroke highlight. The color scale uses `d3.scaleSequential` with the `interpolateMagma` scheme.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.