Skip to main content
100%

First tutorial with d3.js

✓ Published0🌍 Public
MMo
Last edited Oct 10, 2020
Created on Oct 9, 2020
Forked from HTML Starter

This example shows a yellow cartoon face drawn with basic SVG shapes, including two eyes and a curved mouth, all centered in a 960×500 viewport. The code uses d3-selection to manipulate the SVG and d3-shape’s `arc()` function to generate the mouth path. Circles form the head and eyes, with a `g` element translating the group to the center. The face’s proportions are derived from the SVG height and fixed numeric constants for spacing and radius.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes