Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 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
MIT Licensed

Similar vizzes