🌍 Public
Viewing a saved revision (read-only)
8a876aea82fa42cb9b4c5d1601dc045c
Fork of Hello VizHub
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.