Skip to main content
100%

Shape with SVG and CSS

✓ Published0🌍 Public
LLe Truong Trong Nguyen
Last edited Oct 15, 2019
Created on Oct 15, 2019
Forked from Hello VizHub

This example demonstrates static geometric shapes—a circle and a rectangle—drawn directly on an SVG canvas with a fixed 960×500 viewport. The code uses only SVG elements and CSS styling, with no JavaScript-driven interaction or data binding. It relies on the SVG `circle` and `rect` primitives to define the shapes, while external stylesheets handle page layout and font imports. The D3.js library is imported but only used to set text content in a separate message element, which is not visible in the provided markup.

AI-generated description
MIT Licensed

Similar vizzes