Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based report of cars filtered by price, displaying each vehicle as a formatted line of year, make, model, and price. The page renders the final report in a large, centered `<pre>` element, showing only cars under $3,000 from a hardcoded JSON dataset. The code uses D3 v6 to load and display the data, while custom ES6 modules `formatCar.js` and `generateReport.js` handle data transformation and filtering. The report is generated by chaining array methods, specifically `filter` and `map`, before joining the results into a single string.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed