🌍 Public
Viewing a saved revision (read-only)
c88b1573a14449d288234b1d58c3fb1c
Task9&10_PieChart
This pie chart visualization breaks down the count of infected individuals across nine countries, including India, USA, Spain, Russia, UK, Italy, France, Germany, and China. The chart displays both region labels and the calculated percentage of the total infected population for each slice. Built using D3.js, the code imports the `select`, `arc`, `pie`, `scaleOrdinal`, and `schemeCategory10` functions from the `d3` module to generate the SVG rendering. The implementation includes a color-coded legend positioned to the right of the chart, with each entry showing the region name and its corresponding infected count.
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.