Skip to main content
100%

task9-1

✓ Published0🌍 Public
Ssiri2001j@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024
Forked from task9-1

This example shows a pie chart of the Air Quality Index by country, with a color-coded legend listing each nation’s formatted index value. It loads CSV data from a GitHub raw URL, converts the Air_Index field to numbers, and sorts countries descending before rendering. The chart uses D3 v5’s `pie`, `arc`, `scaleOrdinal` with `schemeCategory10`, and `format` to construct slices and labels. The SVG output includes a centered title and a legend positioned to the right, with all text styled via CSS.

AI-generated description
MIT Licensed

Similar vizzes