🌍 Public
Viewing a saved revision (read-only)
78de36cdd3cf48efa0be7e6ef5b38350
pie chart
A pie chart displays the distribution of counts across payment categories, with each slice labeled and colored distinctly. The chart is rendered on an HTML5 Canvas element using the Chart.js library, which fetches its data from a remote CSV file hosted on GitHub Gist. The JavaScript code parses the CSV rows to extract category labels and numeric values, then constructs the pie chart with a custom tooltip callback that calculates and displays each slice's percentage of the total.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.