Skip to main content
100%

Radial Normalized Stacked Bar

✓ Published0🌍 Public
AAndresAnayaIsaza
Last edited Feb 4, 2017
Created on Feb 4, 2017

This radial chart displays the age distribution of each US state as a circular ring of normalized stacked bars, with each bar representing a state and its segments showing the proportion of seven age groups. The outer radius encodes the relative share of residents under five years old, which determines the state sorting order. Built with D3 v4, it uses `d3.scaleBand` for angular positions, `d3.scaleRadial` (a custom d3-scale plugin) for radii, and `d3.stack` with `stackOffsetExpand` to normalize the data from a CSV file. Labels rotate around the circle, and a legend identifies the age categories.

AI-generated description

This is a normalized variant of my earlier example radial stacked bar chart. Compare to the non-radial version. While pretty, you probably don’t want to use this version because it’s easier to compare the bars when they share an aligned (linear) axis. You might consider this form if your ordinal axis is cyclical, such as weeks of the year, and you want to show a cyclical pattern. This example’s data is not cyclical, so the use of a radial form here is rather gratuitous!

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/8d2112a115ad95f4a6848001389182fb'>Radial Normalized Stacked Bar</a>

gpl-3.0 Licensed

Similar vizzes