Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
YYang Shun Yu
Last edited Sep 15, 2023
Created on Sep 15, 2023

A D3.js visualization draws an animated smiley face using SVG shapes. The face consists of a yellow circle, two eyes, movable eyebrows, and a mouth created with the `d3.arc` path generator. Eyebrows animate vertically through chained `transition` calls, moving down and back up over two seconds each. The code imports `select` and `arc` from D3 v5 and manipulates SVG elements directly, with data from `data.csv` displayed as an accompanying table.

AI-generated description

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

MIT Licensed

Similar vizzes