Skip to main content
100%

Fork of Fork of Fork to pie chart

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

This pie chart displays total sales by item category for a Walmart dataset, with each slice representing a categorical aggregate. The visualization fetches a CSV file from a GitHub gist, parses rows to extract category labels and total sales values, and renders the chart on an HTML `<canvas>` element using the Chart.js library. The code specifically uses `new Chart(ctx, { type: 'pie', ... })` with custom background colors and a fixed 400x400 pixel canvas, while the `responsive` option is disabled to maintain the set dimensions.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes