Skip to main content
100%

Fork of Pie Chart

✓ Published1🌍 Public
Nnagamaheswar
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

This fork of a pie chart visualizes the top 10 countries by medal count, with each slice and corresponding legend colored by a manually specified scaleOrdinal range. The code loads CSV data from a GitHub gist via `d3.csv`, then uses `d3.pie` and `d3.arc` to generate the SVG paths, while `d3.scaleOrdinal` assigns colors and the legend is built with appended SVG rectangles and text elements. The total sum of medals is computed but not displayed in the chart itself.

AI-generated description
MIT Licensed

Similar vizzes