Skip to main content
100%

Cars Report

✓ Published0🌍 Public
LLouis
Last edited Jan 17, 2019
Created on Jan 17, 2019
Forked from Hello VizHub

This example demonstrates a simple text report of cars filtered by price, using asynchronous data loading to show a loading message before displaying results. The code uses ES6 modules to organize functions like `getCars` for a simulated API call, `formatCar` for string construction, and `generateReport` to filter and map car objects. The report is rendered into a `<pre>` element via the DOM API, with the data defined inline as JSON and parsed using `JSON.parse`. No D3.js is used despite the metadata, relying instead on native JavaScript promises and array methods.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules

MIT Licensed

Similar vizzes