Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Viewing a saved revision (read-only)

66689bdbc55241a6ba049e0e87283bee

Let's make a face with D3.js!

0 stars2🌍 Public
MMark Jones
Last edited Nov 26, 2019
Created on Nov 26, 2019

A smiley face drawn with SVG shapes animates its eyebrows upward and back down. The example demonstrates fundamental DOM manipulation with D3.js, using `d3.select` to append a yellow circle, two eye circles, arc-based mouth and eyebrow paths, and a rectangular eyebrow. D3 transitions (`transition().duration(2000)`) animate the eyebrow group’s vertical position. The code imports `select` and `arc` from D3 v5, rendering to an SVG canvas with hard-coded dimensions.

AI-generated description

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