Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

f72ec1ef98d24d76b1bc9c823727b38c

Cars Report

0 stars0🌍 Public
EEllen Cubbin
Last edited Feb 7, 2020
Created on Feb 6, 2020
Forked from Hello VizHub

This example displays a text-based report of cars filtered by price, showing the make, model, year, and cost for vehicles under $2,000. The page initially shows a loading message while a simulated asynchronous data fetch runs via a Promise with a two-second delay. The code uses ES6 modules, `JSON.parse` to load hardcoded car data, and the `Promise` API to handle the delayed response. Once loaded, the `generateReport` function filters, formats, and joins the car entries into a single string displayed in an HTML `<pre>` element.

AI-generated description

An example showing the capabilities of VizHub.