Skip to main content
100%

lets make a face with d3.js

✓ Published0🌍 Public
Sshatomouimena
Last edited Nov 4, 2021
Created on Nov 4, 2021
Forked from React Starter

This example builds a cartoon face in SVG using D3.js v7 and React. It draws a yellow circular head, two black eyes, and a curved mouth path, all positioned within an SVG container. The code uses D3’s `select` and `arc` APIs to generate the mouth’s arc shape, while circles are created via appended SVG elements. The face is centered using a transform, and the rendering relies entirely on static SVG primitives with black strokes for outlines.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes