Cars Report
✓ Published0🌍 Public
This example shows a text-based report of used cars, filtering the dataset to display only vehicles priced under $2,000. The cars are loaded from a static JSON array and formatted into readable lines using the `formatCar` function. The report generation relies on the `generateReport` function, which uses `Array.filter` and `Array.map` to process the data, then joins the results with `Array.join`. The final text is injected into the DOM via `document.getElementById` and rendered in a `<pre>` element.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed