Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report - by Ashish

Public visualization

Viewing a saved revision (read-only)

15f55de403444a64acc4d5ed2155663c

Cars Report - by Ashish

0 stars0🌍 Public
Aash301
Last edited Feb 19, 2023
Created on Feb 18, 2023
Forked from D3 Starter

This example demonstrates a text-based data report generated from a small JSON dataset of used cars. It uses the D3 library (d3.v7) to display the information, though the visualization itself is a simple HTML paragraph updated with a loading message followed by the formatted report. The code relies on JavaScript ES6 modules, including `getCars()` which returns a promise simulating a two-second async delay, and `generateReport()` which filters cars under a price threshold and maps them with `formatCar` into readable lines. The data appears as plain text rather than a graphical chart.

AI-generated description

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