Skip to main content
100%

Cars Report

✓ Published0🌍 Public
XXin Li
Last edited Mar 19, 2021
Created on Mar 19, 2021
Forked from Hello VizHub

This example demonstrates loading car data and generating a filtered text report of vehicles priced under $2000. It shows a loading message while waiting for the data, then displays each qualifying car as a formatted line with year, make, model, and price. The code uses asynchronous JavaScript with a Promise-based `getCars()` function that simulates a two-second delay, and local ES6 modules (`generateReport`, `formatCar`) to filter and format the data. The report appears in an HTML `<pre>` element, styled with inline CSS.

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