Skip to main content
100%

Cars Report

✓ Published0🌍 Public
NNkwachi Abel
Last edited May 22, 2022
Created on May 22, 2022
Forked from Hello VizHub

This example demonstrates how to generate a text-based report of cars under a specified price threshold. The page displays a list of car details, including year, make, model, and price, after a simulated two-second data loading delay. The implementation uses JavaScript promises in the custom function `getCars` to fetch mock car data, then filters and formats it with `generatereport` and `formatCar` ES6 modules. The report is rendered into a plain text element via `document.getElementById`, showcasing asynchronous data handling without any external libraries.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes