Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

85e5593844cf4bb4a5dd643fa83a8b9a

Cars Report

1 star1🌍 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.