🌍 Public
Viewing a saved revision (read-only)
e4fe786564224b2391b04426f6c9f6e5
Pie Chart_Archana Goli
This pie chart shows the distribution of kernel types (Kama, Rosa, and Canadian) in a dataset, with each slice’s percentage displayed in a custom legend below the canvas. The chart is rendered using the Chart.js library on a fixed-size canvas element, which reads data from a remote text file via the Fetch API. It counts occurrences of each kernel type from the CSV rows, then draws the pie with semi-transparent colors and a disabled default legend in favor of a dynamically generated HTML legend.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.