Skip to main content
100%

HTML Cars Report

✓ Published1🌍 Public
YYasser Mohseni
Last edited Dec 25, 2020
Created on Dec 24, 2020
Forked from Hello VizHub

This example demonstrates an asynchronous HTML-based cars report that loads a hardcoded dataset of five used cars and filters them by price, formatting each entry as a line of text. It uses D3 via UNPKG for general data utilities, while the core flow relies on JavaScript Promises, `setTimeout`, and ES6 modules like `getCars` and `generateReport` to handle data loading and transformation. The report updates a `<pre>` element’s `textContent` with a formatted list of cars under a specified price threshold, styled with monospace font and CSS selectors.

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