Fork of Fork of Fork of Hello VizHub
✓ Published0🌍 Public
This example visualizes the top ten countries by their World Happiness Report scores using a pie chart. Each slice represents a country, with its size proportional to the reported happiness score, and a legend identifies the country names. The visualization is rendered on an HTML canvas element using the Chart.js library, which is loaded from a CDN. The data is defined as a static array of country and score pairs, with the chart’s colors assigned via a fixed palette of hex values.
AI-generated descriptionMIT Licensed