🌍 Public
Viewing a saved revision (read-only)
4b77cac48d2547a49021e536968497c6
Cars Report
This example demonstrates an asynchronous data-loading and text-reporting workflow. It fetches a hardcoded JSON array of car objects from `getCars.js` after a simulated two-second delay, then filters and formats the entries using `generateReport` and `formatCar` to display a list of cars priced under $2,000. The report is rendered into a `<pre>` element via the DOM API, with a loading message shown initially. The code showcases local ES6 module imports, promise handling, and dynamic text updates without any external 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.