Skip to main content
100%

ICE-7:Pie Chart for csv dataset

✓ Published0🌍 Public
BBajiSharifPatan@my.unt.edu
Last edited Mar 28, 2022
Created on Mar 27, 2022
Forked from ICE - 7 Pie Chart

This pie chart displays the nuclear energy usage of various countries, with each slice representing a country and its corresponding usage value. The chart is rendered as an SVG using D3 v5, with data fetched as CSV from a GitHub Gist. The code uses `d3.csv` to load the dataset, `d3.pie` and `d3.arc` to compute and draw the slices, and `d3.scaleOrdinal` to assign colors. Each slice displays its value in thousands, and a legend on the right shows country names alongside their usage figures.

AI-generated description
MIT Licensed

Similar vizzes