Skip to main content
100%

Cars Report

✓ Published1🌍 Public
IImmaculata-Mary Muoghalu
Last edited Apr 14, 2021
Created on Apr 14, 2021
Forked from Hello D3 Version 6

This example demonstrates a text-based report generated from a small in-memory dataset of cars, filtering and formatting entries based on price. It shows how JavaScript modules and promises structure asynchronous data loading and report generation. The page initially displays “Loading…” and then uses `getCars()` with a simulated delay to fetch parsed JSON data, followed by `generateReport()` and `formatCar` to create formatted lines. D3 v6 is included but not used, while the core logic relies on native array methods like `filter`, `map`, and `join`. The final output appears as a large custom-styled `<pre>` element.

AI-generated description

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

MIT Licensed

Similar vizzes