Untitled
✓ Published0🌍 Public
This example demonstrates how to load D3.js via UNPKG and use ES6 modules from both external and local sources. The code imports the `select` function from D3 and applies a locally imported message string to the text of a `#message` div. The message, defined in `myMessage.js`, is displayed centered at a large font size through `styles.css`. It serves as a minimal template for combining D3 imports, local modules, and styling in VizHub.
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