Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

2bef3c61b1fa4fc9be29d24df75518fb

Cars Report

1 star0🌍 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.