D3 Example
This example shows a donut chart of world religions, with each slice sized by population and colored by religion, accompanied by a color legend. It reads from a CSV dataset on global religious demographics. The visualization uses D3’s `d3.layout.pie` and `d3.svg.arc` to generate the donut, while `d3.scale.ordinal` maps religious names to the x-axis and `d3.scale.category10` assigns colors. The `d3.legend.color` API from the d3-legend library renders the legend. SVG is the rendering method, with axes and labels styled using Open Sans.
AI-generated descriptionA donut chart of world religions with a color legend. This is example 28 from the screencast Splitting Charts.
- Data from Pew Research Center Global Religious Landscape data set
- Using d3-legend
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/1c23d9c7070deb6f8488'>Religions Pie Chart</a>
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1980284&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->