🌍 Public
Viewing a saved revision (read-only)
3263979f7aa44893a70bf233e1c4ac0b
Shapes with SCG and CSS
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 descriptionA demonstration of how to start using D3 version 6.