Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ooptimizeresume
Last edited Jan 7, 2021
Created on Jan 7, 2021
Forked from Hello VizHub

This example demonstrates a simple text-based report of car listings, filtering entries by price and formatting each match into a readable line. It shows how VizHub projects can load D3 via UNPKG and use ES6 module imports to organize code. The data is embedded as JSON and fetched asynchronously with a custom `getCars()` promise, while `generateReport()` applies a price filter and `formatCar` transforms each car object into a string. The output is displayed in a `<pre>` element, with a loading message shown until the data arrives.

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