🌍 Public
Viewing a saved revision (read-only)
5f766a09453f4816a9ae225efa2b2dbe
Fork of Fork of Fork of Hello VizHub
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 description