Skip to main content
100%

SLets make a face with D3.js

✓ Published0🌍 Public
Ggpfstuff
Last edited Dec 5, 2019
Created on Dec 5, 2019

This example builds a cartoon face using D3.js and SVG, with layered geometric shapes for eyes, a nose, and a mouth. It demonstrates common SVG features like paths, strokes, and rounded line joins, styled via a separate CSS file. The face is drawn entirely with hardcoded coordinates inside an SVG element, and the code relies on D3’s selection and attribute methods to apply classes and styling. No data or interaction is involved; the focus is purely on static SVG composition and visual design.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes