Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

0 stars0🌍 Public
Ggunasindhuja
Last edited Feb 25, 2023
Created on Feb 25, 2023

A yellow smiley face is drawn in an SVG canvas, featuring two eyes and a mouth created with D3.js's `select` and `arc` functions. The face centers on a group, with circles for the eyes and a path for the smiling mouth. Eyebrows, rendered as rectangles, animate vertically over two seconds using chained `transition` calls, moving up and then back down. The SVG dimensions are read from the element, and all shapes are styled with fills and strokes.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed