🌍 Public
Viewing a saved revision (read-only)
8251805fc1a1443290c1b70a6ce059a9
D3 Starter Curran Kelleher
This example demonstrates the simplest possible D3 starter template, displaying the text “Hello D3” centered on the page. It uses d3.select to target the body element and chain the .text() method to set its content. The page loads D3 v7 from a CDN, with the styling set through a CSS rule for the body’s font size and text alignment. The setup serves as a minimal foundation for building more complex visualizations.
AI-generated descriptionA demonstration of how to start using D3 version 6.