Skip to main content
100%

Shapes with SCG and CSS

✓ Published1🌍 Public
Bbenroston
Last edited Apr 29, 2023
Created on Apr 29, 2023
Forked from D3 Starter

This example shows how basic SVG shapes—circles, rectangles, lines, and paths—are styled and transformed directly in an HTML document using D3’s `select` method alongside plain CSS. The visualization demonstrates static geometric composition with fills, strokes, and grouped transformations like `scale` and `translate`. The code uses D3 version 7 for a simple text insertion, while styling comes from an external stylesheet that defines line and path appearance. No interactive behavior or data binding is present; the focus is purely on rendering and CSS-based presentation of vector graphics.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes