Skip to main content
100%

Car Report

✓ Published0🌍 Public
Vvishnu-varun
Last edited Aug 19, 2021
Created on Aug 18, 2021
Forked from Hello VizHub

This example displays a filtered list of cars from a static JSON array, showing each vehicle’s year, make, model, and price. The code imports the `cars` data from a local ES6 module and uses JavaScript’s `Array.filter` and `Array.map` to select only cars priced under $2,000 and format them as text lines. The output appears in an HTML `<pre>` element via `document.getElementById().textContent`. It uses no external libraries, relying solely on native JavaScript and ES6 module syntax.

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