Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SCG and CSS

Public visualization

Viewing a saved revision (read-only)

3263979f7aa44893a70bf233e1c4ac0b

Shapes with SCG and CSS

0 stars1🌍 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.