🌍 Public
Viewing a saved revision (read-only)
5680cc3bf605419f818d6e5bff4be6e2
HTML Starter
This example demonstrates the simplest possible D3.js visualization: a full-width SVG element with a red background. The code uses `d3.select` to target the SVG and applies the background color via the `style` method. It serves as a minimal starting point for HTML-based D3 projects, where the D3 library is loaded from a CDN and JavaScript runs from a bundled file. The visualization shows an empty, colored canvas with no data or interactive elements.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.