Skip to main content
100%

Car Report

✓ Published0🌍 Public
Gghsueh01
Last edited Oct 31, 2019
Created on Oct 31, 2019
Forked from Hello VizHub

This example demonstrates a simple text-based car report rendered on a web page. It filters a hardcoded JSON array of car objects by price, formats each matching car into a single string, and displays the final report in a large font. The code uses the `JSON.parse` method to load the data, a custom `formatCar` function for string templating, and `Array.filter` and `Array.map` to process the cars. The report is output as plain text into a `<pre>` element via `document.getElementById`.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes