Skip to main content
100%

Fork of Task 8 Ques 1

✓ Published0🌍 Public
Aaadesh.pranesh@gmail.com
Last edited Apr 19, 2024
Created on Apr 18, 2024
Forked from Task 8 Tut1

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 description
MIT Licensed

Similar vizzes