start
✓ Published0🌍 Public
This example demonstrates a simple asynchronous data-loading workflow in a VizHub project. It shows a “loading…” message that is replaced only after a simulated two-second delay, using a promise returned by the `getCars` function. The code exercises local ES6 module imports, importing `getCars` from a separate file, and imports D3 via a CDN script tag in the HTML. The loaded car objects are logged to the console, while the initial message element is updated using plain DOM text assignment.
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