Skip to main content
100%

Shapes with SVG and CSS

✓ Published1🌍 Public
Rrmaldonadosnz
Last edited Feb 14, 2021
Created on Feb 14, 2021
Forked from Hello World

This example demonstrates how to create basic geometric shapes in an SVG canvas, displaying circles and a rectangle with default black fills except for one red circle. The scene is rendered entirely through SVG markup, with external styling handled by a CSS stylesheet. The code uses the D3.js `select` function to update a message element’s text content, while also showcasing an ES6 module import from a local file. The page layout is set with CSS to remove margins and hide overflow.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes