Skip to main content
100%

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

✓ Published0🌍 Public
AAkhilaSiripurapu
Last edited Feb 21, 2023
Created on Feb 21, 2023

A yellow smiley face is rendered in SVG with D3.js, featuring circular eyes, a mouth shaped with the `d3.arc` generator, and rectangular eyebrows that animate upward and back via chained `transition` calls. Built with D3 v5, the code selects the SVG element, sets its dimensions, and uses `select` and `arc` imports to construct the face, while the eyebrows' positions are manipulated through `attr` transitions over two-second intervals.

AI-generated description

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

MIT Licensed

Similar vizzes