Cars Report
✓ Published0🌍 Public
This example demonstrates loading car data and generating a filtered text report of vehicles priced under $2000. It shows a loading message while waiting for the data, then displays each qualifying car as a formatted line with year, make, model, and price. The code uses asynchronous JavaScript with a Promise-based `getCars()` function that simulates a two-second delay, and local ES6 modules (`generateReport`, `formatCar`) to filter and format the data. The report appears in an HTML `<pre>` element, styled with inline CSS.
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