Skip to main content
100%

Cars Report

✓ Published0🌍 Public
CChristy McCanless
Last edited Feb 20, 2021
Created on Feb 20, 2021
Forked from Hello VizHub

This example demonstrates a text-based report of car listings, filtering and formatting data based on a price threshold. It shows how to use ES6 modules to separate data, formatting logic, and report generation. The code imports car data from a local JSON string, uses the `generateReport` function to filter cars priced above $8,000, and formats each entry with the `formatCar` module. The final report is rendered as plain text into an HTML `<pre>` element using the DOM API, with styling applied via inline CSS. The example also includes an unused `myMessage.js` module and a `styles.css` file.

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