Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shapes with SVG and CSS

Public visualization

Shapes with SVG and CSS

0 stars0🌍 Public
EEvan Chang
Last edited Feb 19, 2020
Created on Feb 19, 2020

This example demonstrates a minimalist SVG visualization that renders an empty 960×500 canvas with a red background, applied via CSS styling through the D3.js `select` API. The visualization uses the React framework to initialize the SVG element, which is styled using D3’s `svg.style` method to set the background color. The rendering approach relies on static SVG markup combined with D3 v5 to manipulate the document object model, showcasing the integration of D3 with React for simple graphic compositions.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed