Skip to main content
100%

Visualization - Cars report

✓ Published0🌍 Public
TTriệu Vĩnh Viêm
Last edited Jul 26, 2020
Created on Jul 26, 2020

This example displays a text-based car report, filtering a hardcoded dataset of five cars to show only those priced under $2,000. The page initially shows “Loading…” while a simulated two-second delay fetches the data via a Promise in `getCars.js`. Once resolved, React’s `generateReport` utility filters and formats each car’s year, make, model, and price into lines of text, which are then written into the DOM’s `msg-element` using plain JavaScript. The visualization relies on asynchronous data handling and string manipulation, with no graphical rendering libraries.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes