Skip to main content
100%

Fork of Fork of Fork of Fork to pie chart

✓ Published0🌍 Public
SSushmaNamidi@my.unt.edu
Last edited Apr 25, 2024
Created on Apr 25, 2024

This example shows a pie chart of total sales by category, with slices labeled by item category and sized by numeric sales values. It loads CSV data from a GitHub repository, parses rows by splitting on commas, and extracts columns 7 and 14 for labels and values. The chart is rendered on a canvas using Chart.js, with a hardcoded color palette and a non-responsive fixed size. The page fetches the dataset asynchronously and initializes the chart after the DOM loads.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes