Skip to main content
100%

Make a face with D3

✓ Published0🌍 Public
NNigel Quinlan
Last edited Mar 14, 2021
Created on Mar 14, 2021

A smiling cartoon face rendered in SVG uses D3.js to draw a yellow circle for the head, two black circles for eyes, and an arc-based path for the mouth. The code imports `select` and `arc` from the D3 library, appends SVG shapes directly, and positions them using hardcoded coordinates and spacing values. The example demonstrates basic SVG shape creation and path generation with D3’s arc generator.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes