Skip to main content
100%

Bar Chart

✓ Published1🌍 Public
PPerry
Last edited Mar 2, 2020
Created on Mar 2, 2020
Forked from HTML Starter

This bar chart displays 2018 state population data from datausa.com. It uses D3 v5 with an SVG rendering approach, mapping population values to horizontal bar lengths against state labels. The code employs `d3.csv`, `scaleLinear`, and `scaleBand` to process the data and position the bars, with `axisLeft` and `axisBottom` generating the chart’s axes. Each state’s population is represented by a steel-blue rectangle, sorted alphabetically along the vertical axis.

AI-generated description

Bar chart shows 2018 population data from datausa.com.

MIT Licensed

Similar vizzes