Skip to main content
100%

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

✓ Published0🌍 Public
AAmol Tangade
Last edited Jul 31, 2021
Created on Jul 31, 2021

A yellow smiley face with animated eyebrows demonstrates core D3.js selection and transition methods. The code renders an SVG circle for the face, two smaller circles for eyes, rectangles for eyebrows, and an arc-generated path for the mouth. Using d3-transition, the eyebrow group moves up and down in a repeating two-second cycle. The example highlights how d3-selection chains element creation and attribute manipulation, while d3-arc constructs the curved mouth shape.

AI-generated description

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

MIT Licensed

Similar vizzes