Skip to main content
100%

ICE7 - Pie Chart_RK

✓ Published1🌍 Public
RRamakanth771
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example presents a pie chart visualizing the top 10 countries by deaths in 2020 from air pollution. The data is loaded from a CSV file using `d3.csv`. The chart is rendered using D3 v5 with SVG, where `d3.pie` computes the arc segments and `d3.arc` defines their geometry. Each slice is labeled with its value in thousands, and a legend lists each country alongside its corresponding number. Color encoding uses an ordinal scale with a custom array, and the layout transforms arcs to center within the SVG canvas.

AI-generated description
MIT Licensed

Similar vizzes