Skip to main content
100%

Cars Report

✓ Published0🌍 Public
DDi Zhen
Last edited Jun 20, 2019
Created on Jun 19, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes