D3 Example
This visualization presents small multiples of donut charts, each sized proportionally to a country’s population, showing religious breakdowns for the five largest countries. Nested selections bind data per country, with pie layout and arc generators drawing slices, while a sqrt scale maps population sums to chart radius. D3-legend renders the color key. Data comes from the Pew Research Center’s Global Religious Landscape dataset, rendered as SVG.
AI-generated descriptionA small multiples visualization of donut charts showing the breakdown of religions for the largest 5 countries.
Note that area is proportional to population, because the area of each pie corresponds to the population of each country (the sum of all religions). This makes the visualization more "honest" than the fixed size Donut Chart Small Multiples.
- Data from Pew Research Center Global Religious Landscape data set
- Uses d3-legend
- Uses nested selections.
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/e025a50dbaae7186e516'>Sized Pie Charts</a>
Thanks to enjalot for the idea to size each donut.
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1980885&f=16777215&b=0" 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/d0a42741ce0cf6cdc3ab'>Sized Donut Charts</a>