Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_1

Public visualization

Viewing a saved revision (read-only)

fb3ce30cb0ef4063a15ba34323cec64b

Assignment2_1

0 stars0🌍 Public
MManishaBoppa@my.unt.edu
Last edited Mar 27, 2025
Created on Mar 27, 2025
Forked from HTML Starter

This example shows the population distribution of countries as a pie chart, with each slice labeled by country in a legend beside the chart. The visualization uses D3 v7 to load CSV data from a GitHub gist, compute pie angles with `d3.pie`, and render slices using `d3.arc` into SVG paths. A tooltip, implemented with HTML overlays, displays the country name and population on hover. Colors are assigned via `d3.scaleOrdinal` with `d3.schemeCategory10`.

AI-generated description