🌍 Public
Viewing a saved revision (read-only)
a04c4e29f0504439b98eb3d1ea8defe6
Activity7_task1
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