🌍 Public
Viewing a saved revision (read-only)
d2623a2d7dbd40b48dc9f18cf0b02a71
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.