Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars0🌍 Public
Jjnpatel
Last edited Jul 31, 2020
Created on Jul 31, 2020

A yellow smiley face is drawn with D3.js as an SVG, featuring circular eyes, rectangular eyebrows, and a mouth created using the D3 arc generator. The eyebrows animate upward and back down over four seconds via chained `transition().duration()` calls on the group containing them. The code imports `select` and `arc` from d3, uses an SVG canvas, and positions facial features relative to the viewport center.

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