Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
MMichelle Mac
Last edited Sep 27, 2020
Created on Sep 27, 2020
Forked from Hello VizHub

This example displays a loading message followed by a text report of cars priced under $3,000. It fetches car data from a local JSON array wrapped in a Promise via `getCars`. The `generateReport` function filters the cars, formats each with `formatCar` (which outputs like “2009 Ford F150: $3000”), and joins the strings. The React starter code renders the final report into a `<pre>` element using `textContent`.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed