Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

2.1.1

Public visualization

2.1.1

0 stars0🌍 Public
Ssanavenkatasurendrareddy@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Assignment 2.1.1

This pie chart visualization displays the Air Quality Index (AQI) by country, with each slice sized proportionally to the index value. The data loads from a CSV file, with the index parsed as a numeric value and countries sorted in descending order. Using d3.pie and d3.arc, the SVG renders colored slices, a legend with country names and formatted index values, and a title. A d3.scaleOrdinal with schemeCategory10 assigns colors, while the chart groups transform to center the pie.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed