Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
PPiotrekW2
Last edited Feb 26, 2019
Created on Feb 26, 2019

This example uses D3.js to demonstrate fundamental DOM manipulation and data binding by generating a playful visualization of global population data. The code loads a CSV file containing country population figures and renders them as SVG rectangles using D3’s `select`, `csv`, and `data` joins, with a smiley face motif whose eyebrows animate as a visual accent. The page leverages D3 v5 and direct SVG manipulation within an HTML document, showcasing how shape generation and layout can be driven by external data.

AI-generated description

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

MIT Licensed

Similar vizzes