🌍 Public
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.