🌍 Public
Task-7
This example demonstrates the basic setup of a VizHub project using D3.js and ES6 modules. It displays the text "Hello VizHub!" centered on the page using D3’s `select` function to target a `#message` div and set its content. The code imports `select` from the D3 library and a local `message` export from an ES6 module, showcasing modular code organization. Styling is handled via an external CSS file, and D3 is loaded from UNPKG.
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
Comments
Sign in to join the discussion.