Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Hhamza.miftah@gmail.com
Last edited Jul 7, 2022
Created on Jul 7, 2022
Forked from Hello VizHub

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 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