🌍 Public
Viewing a saved revision (read-only)
73ae594b7c0344c1929a9a5a4fd77a15
Fork of D3 Starter
This example demonstrates how to build a basic asynchronous data-loading workflow with D3 version 6. It displays a list of used cars with their year, make, model, and price, filtering results to show only vehicles under $2000. The code uses `getCars()` to return a Promise that resolves with JSON-parsed car data after a simulated 2-second delay, then passes it to `generateReport()`, which filters and formats the text output using the `formatCar` helper. The final report updates the DOM via `textContent` on the `<pre>` element.
AI-generated descriptionA demonstration of how to start using D3 version 6.