Skip to main content
100%

Cars Report - by Ashish

✓ Published0🌍 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.

MIT Licensed

Similar vizzes