🌍 Public
Viewing a saved revision (read-only)
0e6a8c0504bc42c5a8869dbe7bb16a13
Pie Chart (with labels) with d3
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