Skip to main content
100%

making a bar chart

✓ Published2🌍 Public
Jjmmoser7
Last edited Feb 11, 2022
Created on Feb 11, 2022

A horizontal bar chart displays population estimates for eleven countries, sorted by descending value, using steel-blue bars against a light background. The visualization is built with D3.js v5, utilizing `scaleLinear` for the population axis, `scaleBand` for country categories, and axis generators `axisLeft` and `axisBottom`. Data from `data.csv` is loaded via D3's `csv` method, with population figures multiplied by 1,000, then rendered as SVG rectangles within a 960x500 canvas.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes