Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 js

Public visualization

Viewing a saved revision (read-only)

0171aa59422145cfa6b0ba5de677daf4

D3 js

0 stars0🌍 Public
田田伟业
Last edited Jun 21, 2021
Created on Jun 21, 2021
Forked from HTML Starter

This example demonstrates a minimal SVG canvas that is styled with a red background using D3.js. The code selects an SVG element via `d3.select('svg')` and applies the background color through the `style()` method. It relies on the D3 v7 library loaded from a CDN, with rendering performed entirely through SVG elements. The visualization serves as a bare-bones starting point, showcasing how D3 can interact with and manipulate existing HTML/SVG structures. The data source is not applicable, as the example focuses solely on basic styling operations without any data-driven graphics.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.