🌍 Public
Viewing a saved revision (read-only)
74790740cd8840e8a35dc0c5d28af5cf
Let's make a face with D3.js
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 descriptionA bare minimum HTML page.
See also React Starter.