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
Cchrisvaillancourt
Last edited Oct 20, 2018
Created on Oct 20, 2018

A yellow smiley face is drawn with SVG shapes, and its eyebrows animate up and down in a looping motion. The example demonstrates fundamental D3.js DOM manipulation by appending circles, rectangles, and an arc-generated mouth to an SVG canvas. It uses the `d3.select` and `d3.arc` APIs, along with chained `transition().duration()` calls to animate the eyebrow group's transform. The code imports from D3 v5 and renders entirely with SVG elements on a 960 by 500 canvas.

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