Skip to main content
100%

Cars Report

✓ Published0🌍 Public
HHarish M A
Last edited Jul 5, 2020
Created on Jul 5, 2020
Forked from Face with D3.js

The Cars Report example demonstrates asynchronous data loading and modular JavaScript by fetching a hardcoded JSON array of five used cars via a Promise-based `getCars()` function, then filtering and formatting the results with `generateReport()` and `formatCar()`. The final report, listing cars under $2,000 as text lines like "2009 Chevrolet Trailblazer :$ 1550", appears in an HTML `<pre>` element. The static SVG renders two geometric paths with black and red strokes, showing a basic Cairo-style pattern without dynamic data binding.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays and modules.

MIT Licensed

Similar vizzes