Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ccindy203cc
Last edited Sep 17, 2022
Created on Sep 15, 2022
Forked from Hello VizHub

This example demonstrates a text-based report of cars, filtering a hardcoded list to display models priced under $2,000. It shows a loading state before using `getCars`, a simulated asynchronous promise with a delay, to fetch the data. The app then uses `generateReport` to filter and format each car with `formatCar`, outputting lines like "2009 Ford F150: $1950" to a `pre` element. The code highlights importing local ES6 modules and using JavaScript promises without 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