Car report
✓ Published1🌍 Public
This example demonstrates how VizHub can load D3 and use ES6 modules to create a simple web page. The code imports `select` from D3 and a local `message` module, then displays the text “Hello VizHub!” in the center of the page. It relies on an external `bundle.js` file, which is not shown, to resolve the imports at runtime. The example uses `d3.select` to target a `<div>` element with the ID `message` and sets its text content, with styling applied via an external stylesheet.
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