Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to use VizHub to combine D3.js v5 with local ES6 modules. It renders two predefined SVG shapes and an icon from the `<defs>` section using `<use>` elements, while a D3 `select` call updates the text of a div with 'Hello VizHub!'. The code imports `select` from `d3` directly and a message from a separate local module, showcasing modular code organization. SVG rendering is handled natively in the markup, with styles defined in an external CSS file.
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