Skip to main content
100%

Cars Report

✓ Published0🌍 Public
SShankar Ghimire
Last edited Sep 28, 2023
Created on Sep 28, 2023
Forked from Hello VizHub

This example displays a text-based report of cars filtered by price, rendering each matching vehicle as a formatted line with year, make, model, and cost. The visualization uses D3 v5 loaded via UNPKG, along with local ES6 modules for data parsing and report generation. The `cars.js` module defines an inline JSON array, while `generateReport` filters and maps entries using `formatCar`. The resulting message is inserted into a `<pre>` element through `document.getElementById`.

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