Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed