Jayadsai to pie chart
✓ Published0🌍 Public
This example visualizes total video game sales by category using a pie chart, highlighting the proportion of sales attributed to each genre. It shows a snapshot of sales distribution across categories such as Action, Strategy, and RPG, with each slice representing a category’s share of the total. The visualization is built with the Chart.js library, which renders the pie chart on an HTML canvas element. The data is loaded from a local CSV file, with sales values parsed and mapped to category labels. The chart uses a predefined set of translucent colors for the slices and disables responsiveness, maintaining a fixed canvas size of 400 by 400 pixels.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed