Skip to main content
100%

Let's make a face with D3.js

✓ Published2🌍 Public
Rrgarimella-viz
Last edited Jun 21, 2020
Created on Jun 20, 2020
Forked from HTML Starter

This example builds a cartoon face using D3.js v5, rendered as an SVG. It draws a yellow circle for the head, blue eyes, eyebrows, and an arc-based mouth using D3’s `arc` generator. The code demonstrates how to manipulate SVG attributes like `cx`, `cy`, `r`, and `width`/`height` to position shapes relative to a central group, using `select` and `append`. No external data is involved; the visualization is entirely constructed from hardcoded dimensions and offsets.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes