Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars1🌍 Public
GGabrz
Last edited Mar 25, 2020
Created on Mar 24, 2020
Forked from React Starter

This example presents a car report, displaying a list of vehicles filtered by price. The page initially shows a loading message, then renders each car’s year, make, model, and price as plain text. The data comes from a hardcoded JSON array and is loaded asynchronously through a JavaScript `Promise` with a simulated delay. The core logic uses `generateReport` to filter cars below a price threshold and `formatCar` to create the display string, while the HTML `<pre>` element presents the final output. The report is updated using the DOM API `getElementById` and `textContent`.

AI-generated description

Data Visualization with D3 course; Cars Report

Comments

Sign in to join the discussion.

MIT Licensed