🌍 Public
Viewing a saved revision (read-only)
821f36c20a5f4b66ba4e2dc33cc0fa42
SVG starter
This example demonstrates a minimal SVG-based bar chart with three static rectangles rendered in steelblue, green, and red. The SVG canvas is created by appending an `svg` element to the HTML body via D3's selection API, with a height of 500 and width of 960. Each rectangle is positioned using explicit `x` and `height` attributes, with widths fixed at 50 pixels. A loop then appends additional red rectangles at intervals of 100 pixels, though the loop condition prevents it from executing properly.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.