Fork of Fork of Fork to pie chart
✓ Published1🌍 Public
This example displays a doughnut chart that visualizes the count of "Related (Yes)" versus "Related (No)" values from a remote CSV file. The code fetches the data from a GitHub gist, splits it into rows, and increments counters based on the fourth column's value. It uses the Chart.js library's `Chart` constructor with a `doughnut` type, drawing onto a Canvas element via `getContext('2d')`. The chart is configured with a bottom legend and is not responsive, with a title indicating the percentage distribution.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed