Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based report of cars, filtering a hardcoded list to display models priced under $2,000. It shows a loading state before using `getCars`, a simulated asynchronous promise with a delay, to fetch the data. The app then uses `generateReport` to filter and format each car with `formatCar`, outputting lines like "2009 Ford F150: $1950" to a `pre` element. The code highlights importing local ES6 modules and using JavaScript promises without external libraries.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed