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
Mmirna981
Last edited Oct 10, 2019
Created on Oct 10, 2019

This example demonstrates fundamental DOM manipulation with D3.js by constructing a yellow smiley face from SVG primitives, including animated eyebrows. The code uses D3 selections and the `arc` generator to draw the mouth, while `circle` and `rect` elements form the eyes and brows. The face is centered via a translated `<g>` group, and the eyebrows are positioned relative to the eye spacing. The visualization runs entirely in the browser with d3.v5, rendering static SVG without external data sources.

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