🌍 Public
Viewing a saved revision (read-only)
7504d9ba2eea4b5f8e3eb1ab3f40b711
Fork of Fork of Fork to pie chart
A pie chart displays total wages by country for 2022, with each slice representing a country’s share from the loaded CSV dataset. The visualization uses Chart.js, fetching data from a GitHub Gist and parsing the CSV rows to extract country names and wage values. Rendered on an HTML canvas with a fixed 400×400 size, the chart assigns six distinct semi-transparent colors to the slices and includes a title. The code relies on the browser’s DOMContentLoaded event to fetch and process the data before drawing.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.