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 stars1🌍 Public
SShantanu Tripathi
Last edited Jun 30, 2020
Created on Jun 30, 2020

A smiley face with yellow circular head, black eyes, and a curved mouth is rendered in SVG using D3.js v5 and ES6 modules. The eyebrows are rectangular shapes that animate vertically via chained `transition()` calls, moving up and then returning to their original position over repeated 2-second intervals. D3's `select` and `arc` APIs construct the SVG elements, with layout driven by hardcoded dimensions from the parent `<svg>`.

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