Skip to main content
100%

Pie Chart

✓ Published1🌍 Public
VVAbhiram99
Last edited Apr 7, 2023
Created on Apr 7, 2023
Forked from Pie Chart

This pie chart displays renewable energy generation from solar photovoltaics for the top ten countries during the COVID-19 period, with each slice representing a country’s output in terawatt-hours. The chart uses d3.pie and d3.arc to compute and draw the SVG paths, while d3.scaleOrdinal with schemeCategory10 provides the slice colors. A legend lists country names and corresponding values, formatted with a custom number format. Data is loaded as CSV from a GitHub gist, sorted descending, and rendered with React integration.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes