Skip to main content
100%

Lets make a face with D3.js

✓ Published0🌍 Public
Yyozhikoff
Last edited Mar 24, 2020
Created on Mar 24, 2020
Forked from HTML Starter

A minimal web page uses D3.js v5 to render a single large circle in the center of an SVG canvas, serving as the base for a face. The `index.js` file selects the SVG element and appends a circle, setting its radius to 200 pixels and centering it horizontally and vertically within the 960-by-500 viewport. The code imports `select` from D3 and directly manipulates SVG attributes, while the HTML loads D3 from a CDN and includes a separate bundle.js. This simple example demonstrates fundamental D3 selection, appending, and attribute-setting methods in a React or standalone context.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes