Untitled
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed