Skip to main content
100%

Car Report

✓ Published1🌍 Public
Hhchangac
Last edited Jan 19, 2020
Created on Jan 19, 2020
Forked from Car Report

This data visualization example, titled “Car Report,” displays a text-based list of cars from a provided JSON dataset. It shows a report of vehicles whose price is under a specified maximum, formatting each entry as a line containing the car’s year, make, model, and price prefixed with dollar signs. The report is generated by filtering the `Cars` array using the `filter` method, mapping each car through a `formatCar` function, and joining the results with newline characters. The final string is displayed in a large `<pre>` element using JavaScript’s `textContent` property, leveraging the React framework for bundling.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes