Fork of MIAGE base
✓ Published0🌍 Public
This example demonstrates how to build interactive SVG graphics using D3.js v5, showing basic shape drawing, styling, and event handling. Three separate exercises display circles with different colors and positions, while a fourth adds mouseover interaction that changes a circle's fill color. The visualization loads population data from a CSV file using D3's `csv` function and logs country names and population values to the console. The code imports D3 functions like `select` and `csv` from local ES6 modules, and uses D3's DOM manipulation methods to create and modify SVG elements.
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