Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to load and display a single data value from a local ES6 module in a web page. It imports a `cars` array containing one object with a `make` property, parses it from a JSON string, and renders the result (`Honda`) into a `<pre>` element using the DOM API. The visualization relies on D3 v5 loaded from UNPKG, though no D3-specific functions are invoked. A separate CSS file styles the message with large, centered text. The approach shows basic module imports, JSON parsing, and DOM manipulation within the VizHub environment.
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