Task9-Question1
✓ Published0🌍 Public
This interactive pie chart displays the percentage distribution of various factors for a selected country, allowing users to compare categorical breakdowns through a dropdown menu. The visualization loads CSV data from a GitHub repository and dynamically updates both the chart and its legend when a new country is chosen. Built with D3 v7, it uses `d3.pie()` to compute arc angles, `d3.arc()` to generate SVG paths, and `d3.scaleOrdinal` with `d3.schemeCategory10` for color mapping, with text labels showing each factor's percentage.
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