🌍 Public
Viewing a saved revision (read-only)
fa29b49a9f4349fb9e4c05809d05b091
Fork of Hello VizHub
This example demonstrates the basic structure of a VizHub project, showing how to display a simple text message on a webpage using D3.js. The code imports the `select` function from the D3 library and a custom `message` string from a local ES6 module. It then uses `select` to target the `#message` div element and sets its text content to the imported string. A separate CSS file centers the message and scales its font size to 12em, while the HTML loads D3 from UNPKG and bundles the JavaScript modules.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.