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
AAnthony De La Fuente
Last edited Nov 3, 2020
Created on Nov 2, 2020

This example draws a cartoon face using D3.js v6 in an SVG container. It shows a circular head with eyes, a mouth, and a small pink rectangle, all positioned using fixed pixel coordinates and attribute setters like `.attr()`. The code imports `select`, `line`, and `arc` from the D3 library, appends SVG shapes including circles, a path for the mouth generated with the `arc()` API, and uses a group element with a transform. No external data source is involved; shapes are placed programmatically.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed