Skip to main content
100%

start

✓ Published0🌍 Public
Jjingwg3@163.com
Last edited Sep 13, 2022
Created on Sep 13, 2022
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes