Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Iisaachowen
Last edited Jul 6, 2019
Created on Jul 2, 2019
Forked from Untitled

This example demonstrates a data-reporting workflow by fetching a JSON array of car records and generating a formatted text report. The page first displays "Loading..." while a simulated two-second asynchronous delay resolves the data via a Promise from `getCars`. The `generateReport` function filters cars by a maximum price and formats each matching entry using `formatCar`, which outputs year, make, model, and price. The final plain-text report is rendered inside an HTML `<pre>` element. The code relies on ES6 modules and native Promise syntax rather than external visualization libraries.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes