Task_9 Question 1
✓ Published0🌍 Public
This example displays a pie chart visualizing COVID-19 total cases by country, using data loaded from a remote CSV file. It maps each country to a slice with a color from `d3.schemeCategory10`, and positions a legend to the right of the chart. The code leverages D3 v6 modules, including `d3.csv`, `d3.pie`, `d3.arc`, and appends SVG elements dynamically. The chart is rendered into a centered SVG with a white background and subtle shadow, loading the data asynchronously to build the visualization.
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.
MIT Licensed