Skip to main content
100%

Car Reports

✓ Published0🌍 Public
Ccpsshan
Last edited Jul 11, 2019
Created on Jul 11, 2019
Forked from Untitled

This example demonstrates a simple text-based report of cars, filtering a hardcoded JSON dataset by price. It uses a Promise-based `getCars` function to simulate a 2-second loading delay, while the `generateReport` module filters cars under $2,000 and formats each entry with `formatCar`. The `index.js` script updates a `<pre>` element’s textContent, showing the list of affordable vehicles. The code relies on D3’s `d3.min.js` bundle for DOM manipulation, though the visualization is purely textual, not graphical.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes