Data Visualization D3.js
✓ Published0🌍 Public
This example demonstrates how to build a simple data report using D3.js and ES6 modules in the VizHub environment. It displays a text message listing cars priced under $2,000, filtered from a local JSON dataset and formatted with a custom helper function. The code loads D3 from a CDN via UNPKG, imports local modules like `cars` and `formatCar`, and updates the DOM using `document.getElementById` to set text content.
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