🌍 Public
Viewing a saved revision (read-only)
b2d045f06e98478c9e6c86451f909e4c
Cars Report
This example demonstrates a simple text-based report of used cars filtered by price. It displays a list of five cars—including year, make, model, and cost—showing only those priced under $2,000. The code uses standard JavaScript Promises via `getCars().then()` to load embedded JSON data, then employs `filter()` and `map()` to process the array. It relies on `formatCar.js` and `generateReport.js` to format each entry into a readable string, which is rendered into a `<pre>` element using the DOM API `textContent`.
AI-generated descriptionA demonstration of how to start using D3 version 6.