Skip to main content
100%

D3 Practice

✓ Published0🌍 Public
TTzu-Yu-Ku
Last edited Mar 17, 2022
Created on Mar 17, 2022
Forked from D3 Starter

This example demonstrates a simple text-based workflow for filtering and formatting a list of used cars. It shows how D3 version 6 can be used indirectly through a JavaScript module bundler, while the core logic relies on native Promises and array methods. The code loads car data from a hardcoded JSON array via the `getCars` function, which simulates a 5-second asynchronous delay. After retrieval, the `generateReport` module filters vehicles priced under $2,000, formats each entry using `formatCar`, and displays the result as plain text in an HTML `<pre>` element.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes