Skip to main content
100%

Cars Report

✓ Published0🌍 Public
JJustin
Last edited Jan 17, 2021
Created on Jan 17, 2021
Forked from Hello VizHub

This example renders a text-based report of used cars, showing the power of VizHub to load D3 from UNPKG and modularize code with ES6 `import` statements. It displays a list of cars under a $2000 price threshold, with each entry formatted as "year make model: price." The code relies on a local `generateReport` module that filters and formats the data, a `getCars` module that parses embedded JSON and returns a Promise with a simulated 2-second delay, and an `index.html` with a `<pre>` element updated via the DOM API.

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