Cars Report
✓ Published0🌍 Public
This example generates a text-based report of used cars from a hardcoded JSON dataset. It filters the car list by a maximum price and formats each matching vehicle into a readable string. The visualization uses the `generateReport` function with array methods like `filter`, `map`, and `join` to produce a plain-text output. The car data is parsed from a JSON string using `JSON.parse`, and the final report is displayed in an HTML `<pre>` element. The page uses a simple DOM selection with `document.getElementById` to update the message content.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed