Skip to main content
100%

HTML Cars Report

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

This example demonstrates how to build an HTML-based report using ES6 modules with D3 v5 and VizHub. A static array of car objects is loaded asynchronously through a Promise, filtered by price, and formatted into text using `formatCar` and `generateReport` functions. The report renders in a `pre` element, displaying only cars below a price threshold, while the page also includes hardcoded list items with CSS highlighting. The code imports D3 via UNPKG and uses local module imports like `./getCars` and `./generateReport`.

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