Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork to pie chart

Public visualization

Fork of Fork of Fork to pie chart

0 stars1🌍 Public
Mmukundakrishna.r@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

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 description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed