Skip to main content
100%

Shapes with SVG and CSS

✓ Published2🌍 Public
Yyejichun@naver.com
Last edited Aug 15, 2021
Created on Jul 25, 2021
Forked from HTML Cars Report

This example shows how SVG shapes such as circles, rectangles, lines, and paths can be styled and arranged using both inline attributes and external CSS. It demonstrates loading D3 via UNPKG and importing from local ES6 modules, though the visible shapes rely purely on static SVG markup. The code uses SVG elements like `circle`, `rect`, `line`, and `path` with transforms for scaling and translation, while `styles.css` defines classes like `.lines` to apply stroke properties. The rendering approach is plain SVG output with no JavaScript-driven data updates.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes