Skip to main content
100%

Lets make a face with D3.js!

✓ Published4🌍 Public
Kkierra
Last edited Jul 1, 2020
Created on Jul 1, 2020
Forked from Shapes with SVG

Using D3.js v5, this example draws a cheerful cartoon face composed of SVG shapes: a yellow circle for the head, two black eyes, rectangular eyebrows, and a mouth created with the `arc` generator. The face is centered within a 960x500 SVG canvas using a translation transform. D3 selections append and position each shape numerically, with explicit attributes for radius, offsets, and path geometry. The code imports `select` and `arc` from the D3 module, and the face is rendered entirely client-side with no external data source.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes