🌍 Public
Viewing a saved revision (read-only)
fa241fba57d949368c3fc3e6d7cf4693
Fork of HTML Starter
A circle rendered in steel blue sits centered on a 960×500 SVG canvas. The example demonstrates basic SVG shape creation with D3 v7, using the `d3.select` method to append a `circle` element and set its `cx`, `cy`, `r`, and `fill` attributes. The visualization is minimal, showing how D3 can generate and style SVG primitives while a separate stylesheet and an `index.js` file provide additional structure.
AI-generated descriptionShapes with SVG and CSS
A simple project demonstrating shapes created with SVG and CSS styling.
Files
index.html- Main HTML file with SVG circle elementstyles.css- CSS styling for the pageindex.js- JavaScript file
Changes Made
- Fixed CSS syntax errors (changed
=to:) - Fixed
scrollbarproperty to standardoverflow: hidden - Removed invalid SVG attribute syntax (comma between width and height)
- Added script reference to index.js in HTML