Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

3c49ade0fba741c3bac3e7c013aebead

Cars Report

0 stars0🌍 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.