Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
BBatkhongor Chagnaa
Last edited May 7, 2022
Created on May 7, 2022

This bar chart displays population estimates for five countries, with horizontal bars sorted by country name and scaled proportionally to population values loaded from a CSV file. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map data to SVG rectangles, while the `csv` method parses the data and converts population strings to numbers. The chart populates a static SVG canvas with a steelblue fill and clear axis labels.

AI-generated description

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

MIT Licensed

Similar vizzes