Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE7-Q2a-Pie

Public visualization

Viewing a saved revision (read-only)

f3826ce609b547779a92023fc6820bce

No content available for this visualization.

ICE7-Q2a-Pie

0 stars2🌍 Public
CCharith Kapuluru
Last edited Oct 28, 2025
Created on Oct 25, 2025

This pie chart displays the proportional population share of each continent, using a fallback dataset by default or aggregated data from a CSV file when it loads successfully. The visualization is rendered as an SVG using D3 v7, with the `d3.pie` and `d3.arc` functions generating the slices and labels. A `d3.scaleOrdinal` with `schemeTableau10` assigns colors, and a legend is appended to the SVG. The code dynamically switches between embedded sample data and CSV-derived aggregates for the year 2023.

AI-generated description