Skip to main content
100%

1

✓ Published0🌍 Public
Ssindhuja27b@gmail.com
Last edited Apr 12, 2024
Created on Apr 8, 2024
Forked from Hello VizHub

This example shows a pie chart of country populations, with each slice labeled by country name and a legend mapping colors to countries. Hovering over a slice’s label displays a tooltip with the population (formatted with commas) and literacy rate. Built with D3 v7, the visualization uses `d3.pie()` and `d3.arc()` to generate SVG paths, while data is loaded via `d3.csv()` from a GitHub gist. The tooltip is manually shown and hidden through D3 selection and style updates, and colors come from `d3.schemeSet3`.

AI-generated description
MIT Licensed

Similar vizzes