Skip to main content
100%

ICE-7-Pie Chart

✓ Published0🌍 Public
AAli Shah Solanki
Last edited Mar 26, 2023
Created on Mar 26, 2023
Forked from Pie Chart

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes