D3 Example
This visualization presents a small multiples grid of polar area charts, one for each country, where each chart uses wedge size to encode the population of different religious groups. The code builds these SVG charts with D3.js, using nested selections, a pie layout, and an arc generator, and colors each religious group via a categorical scale. It loads data from a CSV file of the Pew Research Center’s Global Religious Landscape dataset. While visually crowded and hard to read, the example includes an interactive color legend that re-sorts the country charts when a religion is clicked, demonstrating a starting point for further exploration.
AI-generated descriptionA small multiples visualization of polar area charts showing the breakdown of religions for all countries. This is a variation derived from example 30 from the screencast Splitting Charts.
This visualization is useless, in the sense that it is not very readable. It has many issues, such as occlusion, but it does show the data for all countries on earth. This example gives a starting point for exploring how this data can be visualized more effectively. Please fork this block and experiment!
- 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/94f1376b946c9d217014'>Polar Area Diagram</a>
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1990880&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/60a1ba782ce09cf2091e'>Useless Vis</a>