Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

cars reports

Public visualization

Viewing a saved revision (read-only)

f4177c5483f34306ae9c5d06e7df3b95

cars reports

0 stars0🌍 Public
AAmit Kumar
Last edited Mar 6, 2020
Created on Mar 6, 2020
Forked from cars reports

This example demonstrates a text-based report of car listings filtered by price. It shows how asynchronous data loading and string formatting can drive a simple DOM update. The code uses `getCars` to return a Promise that resolves a hardcoded JSON array after a 1-second timeout, then `generateReport` filters cars under a max price and maps them through `formatCar` into readable lines. The result is displayed in a `<pre>` element via `document.getElementById`, with styling applied through an inline style attribute.

AI-generated description

An example showing the capabilities of VizHub.