Skip to main content
100%

HTML

✓ Published0🌍 Public
Xxychen0612.cs09@nycu.edu.tw
Last edited Sep 18, 2023
Created on Sep 18, 2023
Forked from Promise

This example demonstrates asynchronous data loading and text generation in a web page. It fetches a hardcoded car dataset using a Promise-based `getCars()` function, then filters and formats the results with `generateReport()` and `formatCar()` to display affordable vehicles (under $2,000) in the DOM. The visualization relies on ES6 module imports for local files (`formatCar.js`, `generateReport.js`, `getCars.js`) and renders plain text to a `<pre>` element. D3 is loaded via UNPKG, though the current code uses no D3-specific functions.

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