Skip to main content
100%

Untitled

✓ Published0🌍 Public
GGiosec
Last edited Dec 29, 2020
Created on Dec 29, 2020
Forked from Hello VizHub

This example demonstrates the use of ES6 modules and D3 imports in VizHub, filtering a small dataset of cars from an embedded JSON string and displaying a formatted report. The code imports the `cars` data and a `generateReport` function from local modules, which filters cars under a price threshold and maps each to a formatted string via `formatCar`. The resulting message is written into a `<pre>` element using the DOM API. It showcases local module composition and data transformation without any external visualization library beyond standard JavaScript.

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