Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

cars reports

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed