Cars Report
✓ Published0🌍 Public
This example demonstrates how to build a simple HTML page using D3.js and ES6 modules. It loads D3 version 5 from UNPKG and uses `document.getElementById` to set text content inside a `<pre>` element, displaying the message "Hello World" from `index.js`. The page also imports a second message from a local ES6 module (`myMessage.js`) and renders it. The `styles.css` file applies large, centered typography to the message container, creating a visually clean display.
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.
MIT Licensed