Skip to main content
100%

Making a Bar Chart

✓ Published1🌍 Public
Ssheafallick
Last edited Jan 25, 2023
Created on Dec 13, 2022
Forked from D3 Face

This bar chart displays the populations of several global cities, with each bar’s length representing a city’s population. The visualization uses D3 v7 to load a CSV file, then applies `scaleLinear` for the x-axis population scale and `scaleBand` for the y-axis city categories. SVG rectangles are appended and sized using these scales, with `axisLeft` and `axisBottom` rendering the labeled axes. The chart is styled with steelblue fills and a fixed 960×500 SVG canvas.

AI-generated description

This bar chart shows the populations of the best global cities! - Shea Gazette

MIT Licensed

Similar vizzes