Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Shabbab01 ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

07fe4943134341948f85c966c5c7868a

Shabbab01 ICE - 7 Pie Chart

0 stars0🌍 Public
Sshabbab01
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example shows a pie chart of the top 10 countries by population deaths, with each slice labeled in thousands and a legend listing country names and values. The chart is rendered as SVG using D3 v5, with the `d3.pie` layout generating arc data and `d3.arc` drawing the segments and centroid labels. Slice colors come from a `d3.scaleOrdinal` range, while data is loaded as CSV from a remote GitHub gist. The legend is built manually with SVG rectangles and text elements.

AI-generated description