Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ddanish-nix
Last edited May 6, 2021
Created on May 6, 2021
Forked from Hello VizHub

This example generates a text-based report of cars from a hardcoded JSON dataset, filtering entries by price and formatting each result as a single line of text. The visualization displays the filtered car descriptions in a large `<pre>` element. The code uses D3 v5 loaded via UNPKG for potential data handling, though the main logic relies on custom ES6 modules: `cars.js` parses the JSON, `formatCar` formats each car entry, and `generateReport` filters and maps the data to strings. The final output is injected into the DOM using `document.getElementById().textContent`.

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