Skip to main content
100%

Fork of Fork of Fork to pie chart

✓ Published1🌍 Public
Ssatishnarne99@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes