Untitled
✓ Published0🌍 Public
This example demonstrates how to combine D3.js with ES6 modules in a VizHub project. It loads D3 from UNPKG and uses the `select` function to set the text content of an HTML element with the id “message.” The text itself comes from a separate local module, `myMessage.js`, which exports a string. The stylesheet centers this message and applies a large font size, resulting in a simple, visually prominent greeting.
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