Hello VizHub Fork
✓ Published0🌍 Public
This example demonstrates how to load D3 v5 from a CDN and import local ES6 modules in VizHub, displaying the make of the first car from a hardcoded JSON array in a pre element. The code parses the JSON string using JSON.parse, accesses the first object’s make property, and sets it as the text content of the element with the ID msg, styled by CSS. It shows basic D3 integration and module usage without additional visualization libraries.
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