🌍 Public
Viewing a saved revision (read-only)
bd7a78b3c701438ea0b6f8e110c702d1
Assignment2_Q1_Piechart_Rashmitha
This pie chart visualizes the number of people affected by Ebola in 2014, aggregated by country from a CSV dataset. A D3.js v5 script loads the data, groups entries by country, and sums the affected counts to create proportional slices. The SVG rendering includes interactive tooltips that display each country’s count and percentage on mouseover, alongside a legend showing the same percentages. The visualization uses d3.pie, d3.arc, and d3.scaleOrdinal for color encoding, with a custom CSS tooltip for user feedback.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.