Skip to main content
100%

Activity7_task1

✓ Published0🌍 Public
MMili Patel
Last edited Apr 6, 2025
Created on Apr 6, 2025
Forked from HTML Starter

This visualization displays a pie chart of the top 15 countries by happiness score, using data loaded from a local CSV file. Each slice represents a country’s overall happiness score, with the chart using d3.pie() and d3.arc() to compute and render the arcs in SVG. A color scale from d3.scaleOrdinal with the Tableau10 scheme fills each slice, and white text labels show country names at each arc’s centroid. A legend, also generated with D3, maps each country to its corresponding color.

AI-generated description
MIT Licensed

Similar vizzes