🌍 Public
Viewing a saved revision (read-only)
06f70645fddd42d386d079e00629325c
Cars Report
A cars report displays a text-based list of vehicles under a price cutoff, formatted as lines like “2000 Honda Accord: $2800”. It loads car data from a local JSON array via a Promise that resolves after a simulated 2-second delay. The example demonstrates ES6 module imports and exports, including `formatCar` and `generateReport`, which filter and map the data, and updates the DOM’s `textContent` with the resulting message.
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.