Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

cars reports

Public visualization

Viewing a saved revision (read-only)

a8929bb97d4141a9b0afe7f790aab319

cars reports

0 stars0🌍 Public
Nnightjean7
Last edited Mar 10, 2020
Created on Mar 10, 2020
Forked from cars reports

This example demonstrates a loading and reporting workflow for car listings. It displays a text report of cars priced under a user-defined threshold, filtering from a hardcoded JSON dataset. The page initially shows a “loading...” message while `getCars()` simulates a five-second asynchronous delay. Once loaded, `generateReport` filters the cars by price and formats each entry using `formatCar`, which outputs a line with the year, make, model, and price, rendered inside a `<pre>` element.

AI-generated description

An example showing the capabilities of VizHub.