Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Tthexovc
Last edited Jul 26, 2020
Created on Jul 27, 2020
Forked from HTML Starter

This example builds a simple cartoon face using D3.js and SVG. It renders a yellow circle as the head, two black circles for eyes, and a mouth created with the `d3.arc` shape generator based on a half-circle arc path. The code references `select`, `attr`, and `arc` from D3 v5, with positions calculated from the SVG’s width and height attributes. The face is constructed entirely in a static SVG, with no data or interaction.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes