Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
SSkye-milu
Last edited Aug 2, 2019
Created on Aug 2, 2019

This visualization demonstrates a smiley face whose eyebrows move, created through fundamental DOM manipulation with D3.js. The face is rendered as SVG elements, with the eyebrow animation driven by data mapping. The code uses D3's `select`, `scaleLinear`, and `max` functions to process population data from a CSV file, which controls the width of rectangles representing the face’s features. The project relies on D3 v5 and is embedded in a simple HTML page with inline styles, showcasing basic data binding and SVG attribute updates.

AI-generated description

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

MIT Licensed

Similar vizzes