Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Learning D3

Public visualization

Viewing a saved revision (read-only)

a3bef97cb79b4b3389a06b1927aa242f

Learning D3

0 stars0🌍 Public
Ccorr3o
Last edited Aug 19, 2021
Created on Aug 19, 2021
Forked from D3 Starter

This example demonstrates the simplest possible D3 setup: a blank HTML page that uses D3 version 6 to append an SVG element to the body and turn its background green. The visualization shows no data or chart—only a colored rectangle filling the viewport. The code relies on the `select` method from the `d3` module to target the body, then chains `.append("svg")` and `.style("background", "green")` to create and style the SVG. The page loads d3.v6 from a CDN and renders the result in a web browser.

AI-generated description

A demonstration of how to start using D3 version 6.