🌍 Public
Viewing a saved revision (read-only)
42b1f52f31054cfe98519d4c065036ec
Pie chart of Total deaths with Country DropDown
This interactive pie chart displays total COVID-19 deaths by continent for a selected country. A dropdown menu allows users to filter the data by country, and hovering over a slice reveals a tooltip with exact death counts. The visualization uses D3 v7 with SVG rendering, employing `d3.pie`, `d3.arc`, and `d3.rollup` to aggregate and draw the slices, while a custom legend and color scale using `d3.scaleOrdinal` accompany the chart. Data is loaded from a CSV file via `d3.csv`.
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.