Skip to main content
100%

Task9&10_PieChart

✓ Published0🌍 Public
Jjyothirmaijyothi2017@gmail.com
Last edited Apr 28, 2024
Created on Apr 24, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes