🌍 Public
Viewing a saved revision (read-only)
bc093faccc6948d0bd69ce473a916ccd
Cars Report
This example demonstrates a simple asynchronous data report for a list of five cars, filtering vehicles priced under $2000 and displaying their formatted details. It shows the loading state, then the final report. The visualization uses D3 version 6 through a bundled script, with JSON data parsed in `cars.js`, a `formatCar` function for string output, and `getCars()` returning a promise that resolves after a two-second delay. The `index.js` file imports these modules and updates the HTML `<pre>` element with the filtered result.
AI-generated descriptionA demonstration of how to start using D3 version 6.