🌍 Public
Viewing a saved revision (read-only)
312f04ddc7b149af986660b4d479aec8
Interactive Pie Chart for world milk production
This interactive donut chart visualizes the top eight countries by milk production in millions of tonnes, using a color-coded categorical scale. Hovering over a slice reveals a tooltip showing the percentage of total production for that country. Built with React and rendered as SVG, it uses d3.pie and d3.arc to compute slice geometry, d3.scaleOrdinal for colors, and d3.sum to calculate percentages. The legend-free design labels each country directly on its slice.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.