Skip to main content
100%

Let's make a face with D3.js

✓ Published1🌍 Public
DDerek2Dai
Last edited Nov 10, 2020
Created on Oct 14, 2020
Forked from HTML Starter

This example uses D3.js v6 to render a simple, expressive face as an SVG graphic. The visualization draws distinct facial features—such as eyes and a mouth—onto a fixed 960×500 canvas, driven entirely by hardcoded SVG attributes rather than external data. The code loads D3’s `select` and `csv` functions, though the included `data.csv` file (containing country populations) is not referenced in the rendering logic. The visual output is static, with no interaction or animation. Styles are minimal, setting the body margin to zero and hiding overflow, while the SVG is sized directly via its width and height attributes.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes