Skip to main content
100%

Metis Simple Stacked Bar Chart with Labels

✓ Published0🌍 Public
EElaineYu
Last edited Jul 12, 2017
Created on Jul 12, 2017

This example displays 2017 U.S. unemployment rates as a simple horizontal bar chart, with states sorted descending by rate and each bar labeled with its numeric value using SVG text. D3 v4 selects elements, binds CSV data, and uses `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. The code also demonstrates grouping with `d3.nest()` and computes average rates per region and subregion using `rollup()`. The chart is rendered as an SVG element within a 960x500 canvas.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes