Skip to main content
100%

D3 Starter

✓ Published0🌍 Public
Zzenoe
Last edited Sep 24, 2021
Created on Sep 17, 2021
Forked from D3 Starter

This example demonstrates how to set up a simple D3 workflow by fetching asynchronous JSON data and rendering a filtered text report. It uses `getCars()` to return a promise that resolves a mock dataset of car listings after a two-second delay, then applies `generateReport()` with `Array.filter` and `Array.map` to select cars under a price threshold and format them into a readable list. The `index.html` includes D3 v7 from a CDN, and the final message is written to a `<pre>` element via `textContent`. The code also shows modular ES6 imports separating data access, formatting, and report generation.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes