🌍 Public
Viewing a saved revision (read-only)
90b4725cb04749e09f29224a73b70e55
svg
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 descriptionA bare minimum HTML page.
See also React Starter.