Skip to main content
100%

Cars Report

✓ Published0🌍 Public
VVinceVerspeek
Last edited Dec 21, 2020
Created on Dec 21, 2020
Forked from Hello VizHub

This example demonstrates a simple asynchronous data-loading and report-generation workflow. It uses a static JSON array of five cars, each with a year, make, model, and price, loaded via a promise-based `getCars` function that simulates a two-second delay. After loading, the `generateReport` function filters cars under $2,000 and formats each as a text line using `formatCar`, with the result displayed in a `<pre>` element. The code highlights ES6 module imports, including local modules and Promise handling, without any visualization library.

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