Skip to main content
100%

Shapes with SVG and CSS

✓ Published0🌍 Public
SSadik Özoguz
Last edited Sep 12, 2021
Created on Sep 10, 2021
Forked from D3 Starter

This example demonstrates basic SVG shapes—a circle and an empty rectangle—positioned within a 960x500 viewport, with the SVG element's background colored red via D3's selection and style methods. It uses D3 version 6 to select the SVG and apply CSS styling, while the shape styling is handled through linked CSS. The page shows how to integrate D3 with raw SVG markup and external stylesheets, rendering static vector graphics without data binding or interactivity.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes