Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

ACT_TASK1

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed