🌍 Public
Viewing a saved revision (read-only)
2aa6ae1434324ed987fe65c1285b5751
Fork of Fork of 6 Buddha
This example shows a pie chart of total sales by item category, with each slice labeled by its percentage share. The code loads comma-separated data from a remote gist, parses the category and sales columns, and generates random colors for each slice. It uses Chart.js to render the chart on a Canvas element, displaying the percentage labels via the datalabels plugin. The chart is set to a fixed 400x400 size with a static title.
AI-generated description