Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars report

Public visualization

Viewing a saved revision (read-only)

802a7cd92bb34d7ca0bcdf8969218100

Cars report

0 stars0🌍 Public
TTimothy sit
Last edited Dec 25, 2020
Created on Dec 25, 2020
Forked from D3 Starter

This example demonstrates how to generate a text-based car report using modular JavaScript with D3 v6. It shows a loading message while asynchronously fetching car data via a custom Promise, then filters cars under a specified price and formats each match into a readable string using helper functions. The code uses `d3.v6.min.js`, `getCars()`, `generateReport()`, and `formatCar()` to parse inline JSON data and update the DOM element with the final report.

AI-generated description

A demonstration of how to start using D3 version 6.