🌍 Public
Viewing a saved revision (read-only)
a663d4b071814433ac871eae2e541db8
Episode 4
This example displays the text “Hello D3 version 7” centered on a blank page in a very large font size. It demonstrates a minimal setup for using D3 version 7, showing how to select a DOM element and replace its text content with a string. The code imports the `select` function from the `d3` module and applies it to the `body` element, setting its `text` property to the greeting. The page loads the D3 library from a CDN and runs the logic from a bundled script.
AI-generated descriptionA demonstration of how to start using D3 version 6.