Skip to main content
100%

Cars Report

✓ Published0🌍 Public
WWMLek
Last edited Mar 6, 2020
Created on Mar 4, 2020
Forked from Hello VizHub

This example demonstrates a plain-text report generator that filters a small inline dataset of cars by price and formats the results into a readable list. The interface is a single `<pre>` element with large styled text, populated by writing the generated report’s string content into the DOM via `document.getElementById().textContent`. The code uses ES6 modules to separate data parsing with `JSON.parse`, a `formatCar` helper for string templating, and a `generateReport` function that chains `filter` and `map` before joining lines. No external libraries are used, relying only on core JavaScript and HTML.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes