Skip to main content
100%

Cars Report

✓ Published1🌍 Public
YYuShuenWang
Last edited Sep 17, 2020
Created on Sep 17, 2020
Forked from Hello VizHub

This example demonstrates a JavaScript data-processing pipeline that fetches car data, filters it by price, and formats the results into a text report displayed in a webpage. The visualization shows a loading message while `getCars()` returns a Promise simulating a two-second delay, after which `generateReport()` filters cars priced under $2,000 and maps each to a formatted string using `formatCar`. The final output appears as a list of filtered car descriptions in a styled `<pre>` element, with no charting or rendering libraries used.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes