🌍 Public
Viewing a saved revision (read-only)
b450020b55ad4edcb4321fd970ca789b
Cars Report
This example generates a text-based report of cars filtered by maximum price. It loads car data from a hardcoded JSON array via a simulated asynchronous `getCars()` Promise, then applies a `filter` and `map` pipeline in `generateReport` to format each matching car as a string. The output, rendered in a `<pre>` element with a large font, lists the year, make, model, and price. The code uses JavaScript ES6 modules, `Promise`, and DOM `textContent` updates, with no D3 visualization.
AI-generated descriptionAn example showing the capabilities of VizHub.