Skip to main content
100%

Cars Report

✓ Published0🌍 Public
AAlin-Ylcnky
Last edited May 7, 2023
Created on May 7, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes