Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Viewing a saved revision (read-only)

b3e8be8b97a34f0484a1ce0fcd2fed5e

Shapes with SVG and CSS

0 stars0🌍 Public
CChia-KaiYang
Last edited Feb 27, 2019
Created on Feb 27, 2019

This example demonstrates a minimalist SVG visualization with a solid red background, created using D3 v5 to select the SVG element and apply inline styling. The page loads D3 from a CDN and runs a bundled script that changes the SVG’s background color to red. The accompanying CSS resets the body margin and hides overflow, ensuring the red rectangle fills the viewport without scrollbars. The visualization relies on D3’s `select` API and native SVG rendering, with no additional data or interactive elements.

AI-generated description