Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

04fd3adcfc16439ca0adc2464567cb2f

Cars Report

0 stars0🌍 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.