Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Nnvelden
Last edited Apr 10, 2020
Created on Apr 10, 2020

This example builds an animated bar chart from a CSV of country populations using D3.js v5. It loads the data with `d3.csv`, maps each population value to a linear scale, and renders the bars as SVG rectangles positioned by a band scale. The chart displays the ten most populous countries with bar widths proportional to their populations, showing how straightforward D3’s data-join and scaling APIs are for creating visualizations.

AI-generated description

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

MIT Licensed

Similar vizzes