Skip to main content
100%

Fork of Fork of Cars Report

✓ Published1🌍 Public
Ppuru001
Last edited Apr 26, 2022
Created on Apr 26, 2022

This example demonstrates how to build a simple, text-based report from a static dataset of cars using ES6 modules. It loads a hardcoded JSON array of car objects via a local async function and filters them by price, formatting each match into a readable line with the `formatCar` helper. The report is generated using the `generateReport` function and displayed inside a `<pre>` element. The code shows how to use `import`/`export` for both local modules and the D3 library, though D3 itself is not used in the logic.

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