Radial Normalized Stacked Bar
This radial bar chart displays the age distribution of U.S. states as a normalized stacked donut, with each state occupying a segment and each age group represented by a colored arc whose radial extent shows its proportion. The chart uses d3.stack with the stackOffsetExpand transform, d3.arc for paths, and a custom d3-scale-radial plugin extending d3.scaleLinear. Data is loaded from a CSV file, with states sorted by the proportion of residents under five years old. The visualization includes circular gridlines with percentage labels and a legend for age categories.
AI-generated descriptionThis 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>