Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Hhossaphul
Last edited Mar 26, 2023
Created on Mar 25, 2023
Forked from D3 Starter

This example displays a pie chart of the top 10 countries by CO2 emissions, showing each country's share of the total and its emission amount in million tons. The chart is rendered in SVG using the D3 library, with the `pie`, `arc`, and `scaleOrdinal` functions to construct and color the slices and legend. Data is loaded from a remote CSV file containing country and co2_amount fields, and the D3 `csv` function parses the data. The legend lists each country with its percentage and tonnage, providing a detailed breakdown alongside the visual representation.

AI-generated description

Which countries are the world’s biggest carbon polluters? Data Reference

MIT Licensed

Similar vizzes