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 stars2🌍 Public
MMuhammad Jarir Kanji
Last edited Dec 16, 2020
Created on Dec 16, 2020

A smiling face made of SVG shapes is drawn in the center of the canvas. The animation, powered by D3.js v5, continuously moves the rectangular eyebrows up and down using chained `transition().duration(2000)` calls. The face components are built with D3's `select` and `append`, while the mouth uses the `arc` function to generate a semicircular path.

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