🌍 Public
Viewing a saved revision (read-only)
aa8aa6e8e8e747928a6bac59b718b125
pie chart
This example shows a pie chart of unemployment rates by country, with each slice labeled by country name and percentage in the legend on the right. It fetches CSV data from a GitHub gist and renders the chart on a canvas element using the Chart.js library. The code parses the CSV rows manually, assigns each country a random color, and customizes legend and tooltip callbacks to display the percentage alongside names.
AI-generated description