Activity7_task1
✓ Published0🌍 Public
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 descriptionMIT Licensed