Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Shabbab01 ICE - 7 Pie Chart

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed