Skip to main content
100%

D3 Example

✓ Published0🌍 Public
TTedables
Last edited Feb 7, 2017
Created on Feb 7, 2017

This example shows a stacked bar chart comparing the estimated population of eight religious groups across five countries (China, India, USA, Indonesia, and Brazil) in 2010. The visualization uses D3.js with `d3.layout.stack` to layer the bars, `d3.svg.axis` for axes, and `d3.legend.color` for the interactive legend. Hovering over a legend entry fades the underlying bars with a semi-transparent overlay and re-renders only the selected layer in the foreground, with tooltips via `d3.tip`. The data is the Pew Research report on the global religious landscape.

AI-generated description

Stacked bars showing estimated religion by top 5 countries in 2010. This is an example from the tutorial Splitting Charts. The data shown is from this report on The Global Religious Landscape from Pew Research, generated using this processing script.

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=1967777&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/805413fb3b2efaada1ce'>Stacked Bars</a>

mit Licensed

Similar vizzes