Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Pprat1507
Last edited Aug 28, 2019
Created on Aug 27, 2019
Forked from Hello VizHub

This example demonstrates a data-driven report that filters a list of cars by price and displays the results as text. It uses `setTimeout` to simulate asynchronous data loading with a two-second delay, showing a “Loading…” message first. The code employs standard JavaScript promises (`new Promise`) and string interpolation in `formatCar` to construct each car’s description. The report is generated by chaining `filter`, `map`, and `join` in `generateReport`, and the page updates via `textContent`. Styling uses CSS with a custom font and dark background.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes