🌍 Public
Viewing a saved revision (read-only)
b4ce29c12ea84e9f84b0edeb3619d6f9
Untitled
This example renders a single red square with a black border onto a 300-by-300 SVG canvas. It uses D3 version 5’s `selectAll` and `append` to create the `rect` element, setting its position, size, stroke, and fill through chained attribute assignments. The page also loads D3 from a CDN, includes a separate bundle.js, and demonstrates basic SVG manipulation without any external data source.
AI-generated descriptionAn example showing the capabilities of VizHub.