Fork of Task 8 Ques 1
✓ Published0🌍 Public
This visualization presents a pie chart of mental health death rates across various countries, using data from a local CSV file. The chart uses D3.js (v7) to generate the SVG, with `d3.pie()` computing arc angles and `d3.arc()` rendering the paths. A categorical color scale (`d3.scaleOrdinal` with `schemeCategory10`) maps countries to colors, and a legend lists each country with its corresponding color. The data is fetched via the Fetch API, then parsed using `d3.csvParseRows`, with values converted to numbers for the pie layout.
AI-generated descriptionMIT Licensed