Skip to main content
100%

Making a bar chart

✓ Published1🌍 Public
Nnouralkhoury
Last edited Sep 28, 2020
Created on Sep 28, 2020
Forked from Making a

A bar chart displays population figures for nine countries, with steel-blue rectangles whose lengths encode each nation’s population. The chart uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and `axisLeft`/`axisBottom` to render ticks. Data loads from a CSV via `d3.csv`, and the SVG renders axis groups and rectangles through `append` and `enter` selections.

AI-generated description

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

MIT Licensed

Similar vizzes