Skip to main content
100%

Car Report

✓ Published0🌍 Public
Ddsku2276
Last edited Dec 2, 2019
Created on Dec 2, 2019
Forked from Car Report

This example displays a text-based car report, listing vehicles under a specified price with their year, make, model, and formatted cost. It demonstrates asynchronous data loading and string generation using D3.js v5’s `select` and `text` methods to update a `<pre>` element. The code uses `getCars` with a `Promise` and `setTimeout` to simulate fetching JSON data, then processes it via `generateReport` and `formatCar`, filtering by a maximum price. A dark theme with Ubuntu typography is applied through CSS.

AI-generated description

An example showing a simple Car report.

MIT Licensed

Similar vizzes