D3 Example
This example uses nested selections to render a small multiples grid of polar area charts, each representing the distribution of religious affiliations by population for a single country. The visualization draws from the Pew Research Center’s Global Religious Landscape dataset and sorts countries by the total population of a selected religion, which can be chosen by clicking a color legend. The code relies on `d3.layout.pie`, `d3.svg.arc`, and `d3.legend.color` to build the SVG charts, with animated transitions applied to reorder and reposition the pies.
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.
Ideas for improvement:
- Link with another view that filters the data, such that less then ten pies are shown.
- Add transparency and sorting
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 -->