Skip to main content
100%

Pie Chart (with labels) with d3

✓ Published0🌍 Public
Ssuchitra2602
Last edited Jul 2, 2022
Created on Jul 2, 2022

This interactive pie chart visualizes the top 10 countries with the highest women’s populations, with each slice labeled by name and value. Data is loaded from a CSV file and rendered as an SVG using d3.arc and d3.pie, with a categorical color scheme via d3.scaleOrdinal. The chart features interactive tooltips on hover, which display the country name and value, achieved by appending and removing text elements within the SVG. A legend is also generated alongside the chart.

AI-generated description
MIT Licensed

Similar vizzes