Shapes with SVG and CSS
✓ Published1🌍 Public
This example demonstrates a minimal SVG scene containing a single red circle, placed on a blank canvas. It highlights how SVG shapes can be styled using an external CSS file, with the circle’s default black fill and the page’s hidden overflow defined in `styles.css`. The code loads D3 via UNPKG and uses an ES6 `import` from `"d3"`, though no D3 functions are called. It also shows importing a local stylesheet through a `<link>` tag in `index.html`, with the `.highlighted` class available for future styling.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed