🌍 Public
Viewing a saved revision (read-only)
1fb7b2cb359d48e0848d38b54cca18d5
Fork of D3 Starter
This example demonstrates a minimal D3.js setup with a red background applied to an SVG canvas. The visualization renders an empty 960x500 pixel SVG element and uses the `d3.select` API to target the SVG and apply inline styling. The code relies on the D3 v7 library, loaded from a CDN, and executes a single JavaScript file that modifies the SVG’s presentation. The result is a plain colored area, illustrating the fundamental steps of initializing and styling a D3 graphic without any data or additional marks.
AI-generated descriptionA demonstration of how to start using D3 version 6.