Skip to main content
100%

D3 Example

✓ Published0🌍 Public
JJan0RodGar
Last edited Jul 27, 2018
Created on Jul 27, 2018

This example displays grouped bar charts comparing the populations of five countries across eight religious categories. The visualization uses a stacked-to-grouped layout, with each religion represented by a distinct color from a categorical scale. The code loads data from a CSV file and leverages D3.js (version 3.5.5) with d3.nest, d3.layout.stack, d3.svg.axis, and d3.legend to render the SVG chart. Axes and legends are styled with the Open Sans font.

AI-generated description

Grouped bars showing religion by top 5 countries. This is an example from the tutorial Splitting Charts.

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

forked from <a href='http://bl.ocks.org/Jan0RodGar/'>Jan0RodGar</a>'s block: <a href='http://bl.ocks.org/Jan0RodGar/5d438808a85cef9409600bde54c98620'>Grouped Bars</a>

mit Licensed

Similar vizzes