Cars Report
✓ Published1🌍 Public
This example demonstrates a data-driven report that filters a list of cars by price and displays the results as text. It uses `setTimeout` to simulate asynchronous data loading with a two-second delay, showing a “Loading…” message first. The code employs standard JavaScript promises (`new Promise`) and string interpolation in `formatCar` to construct each car’s description. The report is generated by chaining `filter`, `map`, and `join` in `generateReport`, and the page updates via `textContent`. Styling uses CSS with a custom font and dark background.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed