EyeBrows
✓ Published0🌍 Public
This example displays the text “Hello D3 version 6” in a large, centered font on a blank page. It uses the D3 library, specifically the `select` function, to target the body element and the `.text` method to insert the string. The code imports `select` directly from the `d3` module. The page’s styling is set through a CSS rule that centers the text and sets its font size, while the D3 script is loaded from an external dependency. The data is hardcoded as a simple string literal.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed