🌍 Public
Viewing a saved revision (read-only)
5fb807ba12c94a5eaf2e25ea539e651a
Shapes with SVG and CSS
This example demonstrates how different SVG shapes—circles, rectangles, lines, and paths—can be styled and combined using D3’s square-root scale and CSS. It shows the same shapes in three group configurations: default styling, explicit fill and stroke attributes, and a group with shared fill/stroke properties. The `d3.scale.sqrt` function is defined but not applied. The SVG uses a `transform` scale, while CSS classes control stroke width, color, and line join/cap styles for the line and path elements.
AI-generated descriptionAn example including some commonly used features of SVG.