🌍 Public
Viewing a saved revision (read-only)
74ccaa0e651c4e8fbdb9322cac80b337
Shapes with SVG and CSS
A minimal example demonstrates how SVG shapes can be positioned using CSS, showing a single red circle rendered on a 960 by 500 canvas. The code uses D3 v5's `select` and `append` APIs to create the circle element and set its radius and coordinates, while a linked stylesheet applies basic styling. The circle is centered at roughly the midpoint of the canvas, illustrating basic SVG placement with D3 and CSS integration.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.