D3 Example
✓ Published0🌍 Public
AAsadeviB
Last edited Feb 28, 2018
Created on Feb 28, 2018
This example shows grouped bars comparing population counts across five countries, with each bar colored by religion. It uses D3.js version 3.5.5 for scales, axes, and the d3.layout.stack for stacked-to-grouped transformation, along with the d3-legend library for the color legend. Data is loaded from a CSV file, and the view is rendered as an SVG with ordinal and linear scales. The y-axis uses tick formatting with SI prefixes.
AI-generated descriptionGrouped bars showing religion by top 5 countries. This is an example from the tutorial Splitting Charts.
- Draws from Stacked-to-Grouped Bars
forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/d4e2b2854f25429a06aa'>Grouped Bars</a>
mit Licensed