🌍 Public
Viewing a saved revision (read-only)
ccdfc8e9de0341b4bcfcc8dd60f25c99
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