Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

5d839a8a512c4e1eb94d677044a8c769

Cars Report

7 stars275🌍 Public
CCurran Kelleher
Last edited Dec 26, 2019
Created on Aug 20, 2018
Forked from Loading CSV

This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and price. It uses a static JSON array embedded in `getCars.js`, returning a Promise with a two-second delay to simulate async data loading. The `generateReport` function filters cars under a maximum price and maps them through `formatCar` to produce formatted strings. The DOM is updated via the native `document.getElementById` and `.textContent`, with no external visualization libraries, relying on modern JavaScript modules and template literals.

AI-generated description

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