Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork to pie chart

Public visualization

Viewing a saved revision (read-only)

ebe00d2ffb5044a68c5b112b2a820234

Fork of Fork of Fork of Fork to pie chart

0 stars0🌍 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.