ICE-7-Pie Chart
✓ Published0🌍 Public
This example visualizes alcohol consumption by country as a pie chart, showing the top ten countries by liters of alcohol consumed. Built with React and D3 v5, it uses `select`, `csv`, `pie`, and `arc` to generate SVG paths, with `scaleOrdinal` and `schemeCategory10` for colors. A legend, created with `legend.append("rect")` and `text`, displays each country’s name, a color swatch, and its consumption value from the provided CSV data source.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed