Skip to main content
100%

D3 Example

✓ Published0🌍 Public
TThanaporn-sk
Last edited Dec 31, 2016
Created on Dec 31, 2016

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 description

A 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.

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>

mit Licensed

Similar vizzes