Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Tterrydtr
Last edited Jan 26, 2021
Created on Jan 25, 2021
Forked from Hello VizHub

This example shows a text-based report of used cars priced under $2000, listing each vehicle’s year, make, model, and price. It imports car data from a local ES6 module using `JSON.parse`, formats entries with the `formatCar` function, and filters the array with `Array.filter` before joining results. The final message is displayed in an HTML `<pre>` element via `textContent`. The code demonstrates local module imports and ES6 template literals without using D3 or any 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