Untitled
✓ Published0🌍 Public
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.
MIT Licensed