Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars1🌍 Public
Aaliyevmirzakhan
Last edited Aug 26, 2019
Created on Aug 26, 2019
Forked from Cars Report

This example demonstrates a simple asynchronous data-report generator that filters a hardcoded list of cars by price and formats the results into a text report. It uses the `generateReport` and `formatCar` functions to process a JSON array of car objects, displaying only vehicles priced above a maximum threshold. The code relies on Promises via `getCars`, which resolves the car data after a simulated delay, and updates the DOM through `textContent`. The page loads with a “loading” message before showing the final report in a styled `<pre>` element.

AI-generated description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed