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