Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ACT_TASK1

Public visualization

Viewing a saved revision (read-only)

92c0c5cec488436987b6db63e31c5943

ACT_TASK1

0 stars0🌍 Public
RRevanth putta
Last edited Nov 2, 2025
Created on Nov 2, 2025

This pie chart visualizes the distribution of happiness scores across 20 countries, aggregating all remaining nations into an "Others" slice. Built with D3 v6, it uses `d3.pie` and `d3.arc` to generate the segments, `d3.scaleOrdinal` with `schemeCategory10` for coloring, and a custom legend rendering via `d3.select`. The data is loaded through `d3.csv` from a remote Happiness dataset, processed to highlight the top-scoring countries.

AI-generated description