🌍 Public
Viewing a saved revision (read-only)
71d265b1cda8481da1f22fdb3c2e1b3a
SVG fundamentals
This example demonstrates fundamental SVG shapes drawn directly in an HTML document, including circles, rectangles, lines, and paths. The SVG canvas is fixed at 800 by 800 pixels, with shapes positioned using explicit coordinates and styled with attributes like fill, stroke, and stroke-width. The code also includes `index.js`, which imports the `select` function from D3 version 7 and sets the body text to "Hello D3 version 7", showing a minimal D3 integration alongside static SVG markup. The visual output is purely static, with no interaction or dynamic data binding.
AI-generated descriptionA demonstration of how to start using D3 version 6.