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
Jjesramyep1263
Last edited Mar 20, 2020
Created on Mar 20, 2020

The example constructs a cartoon face from simple geometric shapes using D3.js v5 and SVG rendering. It employs `d3.select` to append circles and paths directly to an SVG container, with `d3.scaleOrdinal` mapping color values for facial features. The face is composed entirely of static elements—no animation or interaction—and the code relies on basic D3 utilities like `d3.arc` for the mouth shape. Styling is handled via an external stylesheet that resets margins and hides overflow. The visual result demonstrates how D3's declarative DOM manipulation can build complex illustrations from primitive SVG components.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed