Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

3914889b18a2457fa7b9458349f82ea6

Cars Report

0 stars1🌍 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.