Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
XXinya Gao
Last edited Dec 31, 2020
Created on Dec 31, 2020
Forked from D3 Starter

This example shows a grid of cartoon faces, each with randomly sized eyes, rendered as SVG in a React application. It demonstrates the use of D3 v6’s `arc` generator to construct the smiling mouth path, while React components compose the face from reusable parts like background circles and eye pairs. The data is generated with `d3.range`, and each face is positioned by a centered `<g>` transform. The rendering approach combines D3’s geometry utilities with React’s declarative SVG elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes