Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter

Public visualization

Viewing a saved revision (read-only)

c7a2c2dd2e7e4159b772d65393476b7f

Fork of D3 Starter

0 stars0🌍 Public
Ccodingtywu
Last edited Sep 19, 2022
Created on Sep 19, 2022
Forked from D3 Starter

This example demonstrates a minimal D3.js version 7 setup by rendering a single, full-width SVG element. It colors the entire 960-by-500-pixel canvas blue by using `d3.select` to target the SVG element and the `svg.style` method to apply the background color. The code imports only the `select` function from the D3 module, and the visualization is a static, empty scene with no data or interactive elements. The HTML page loads D3 from a CDN and includes a separate JavaScript bundle, highlighting the basic structure of a D3 project.

AI-generated description

A demonstration of how to start using D3 version 6.