Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Eecw99
Last edited Mar 20, 2020
Created on Mar 20, 2020
Forked from HTML Starter

This example uses D3.js v5 to draw a simple face on an SVG canvas. The code selects an SVG element via `d3.select` and reads its width and height attributes, then appends a single circle with a radius of 200 pixels, centered at the midpoint of the viewport. The visualization demonstrates basic SVG shape generation and attribute manipulation using D3’s `attr` method, with the circle representing the face’s outline. No facial features are added beyond the circle, and the rendering relies on the SVG primitive directly.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes