Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Ssiddharth171
Last edited Jul 20, 2020
Created on Jul 19, 2020
Forked from HTML Starter

This example shows how to construct a face using basic SVG shapes—circles, rectangles, lines, and paths—in a static composition. The code uses plain D3.js v3 with SVG rendering, applying SVG `transform` attributes to scale and translate groups of elements. The face is built from a pink circle for the head, green rectangles for eyes, and a light green path with orange stroke for the mouth. The `style.css` file defines stroke properties for the line and path elements, while the HTML provides the SVG container with a fixed width and height.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes