Skip to main content
100%

svg

✓ Published1🌍 Public
NNicolás Romero
Last edited Oct 11, 2020
Created on Oct 10, 2020
Forked from HTML Starter

This example shows a simple SVG face composed of a large yellow circle with a black outline and a smaller black circle representing an eye, centered on a 960×500 canvas. The code uses D3 v6’s `select` and `append` methods to create SVG elements, reading dimensions from the `width` and `heigth` attributes of the root `<svg>` element. The `heigth` attribute is misspelled in the HTML, but the JavaScript accesses it consistently, demonstrating basic SVG drawing with D3 selections and attribute chaining.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes