🌍 Public
Viewing a saved revision (read-only)
4f16ddb230cf4f9cb1ce39df673d1b4f
HTML Starter
This example displays a blank SVG canvas with a red background, demonstrating the minimal setup required for a D3 visualization in an HTML page. The code uses the D3 v5 `select` function to target the SVG element and applies the background color via the style method. The page loads D3 from a CDN and references a bundled JavaScript file, showing the basic structure for integrating D3 with a React framework.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.