Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

539d6354c0314238a1a81645c0332949

Cars Report

0 stars0🌍 Public
Eeva-keller
Last edited Jan 22, 2021
Created on Jan 22, 2021
Forked from Hello VizHub

This example demonstrates a text-based report of used cars, filtering a list of vehicles to display only those priced under $2,000. The page initially shows a loading message, then presents the filtered results as formatted lines listing each car’s year, make, model, and price. The code uses JavaScript modules with `export` and `import` statements, JSON parsing via `JSON.parse`, and a Promise-based `setTimeout` to simulate asynchronous data fetching with `getCars`. The report generation relies on `Array.filter`, `Array.map`, and `Array.join` to process the car data.

AI-generated description

An example how to use Javascript objects, arrays and modules.