🌍 Public
Viewing a saved revision (read-only)
c7a2c2dd2e7e4159b772d65393476b7f
Fork of 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 descriptionA demonstration of how to start using D3 version 6.