Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
SSteve-Vail
Last edited Jul 18, 2019
Created on Jul 18, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.

Comments

Sign in to join the discussion.

MIT Licensed