Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Lets Make a Face with D3

Public visualization

Lets Make a Face with D3

0 stars1🌍 Public
Sswathi24288
Last edited Oct 13, 2020
Created on Oct 8, 2020

This example builds a simple cartoon face from SVG primitives using D3 v6. A yellow circle forms the head, two black circles serve as eyes, and a mouth is drawn as a path generated with the `d3.arc()` generator. The code selects the SVG element, reads its width and height attributes, and positions each shape relative to those dimensions. The arc’s inner and outer radii, along with start and end angles, define the mouth’s curved shape.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed