🌍 Public
Activity 6 Task 2
This example demonstrates D3.js charting with data loaded from a local CSV file. It uses `d3.csv` to parse the data and renders a simple visualization with SVG elements. The code imports D3 modules via ES6 `import` statements from UNPKG, following modern JavaScript conventions. It also imports a local ES6 module, showcasing modular code organization within VizHub. The visualization updates dynamically in response to the data structure, illustrating basic data-binding with `d3.select` and `d3.dataJoin`. Styling is handled through an external stylesheet, keeping presentation separate from logic.
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








Comments
Sign in to join the discussion.