Skip to main content
100%

Task_9 Question 1

✓ Published0🌍 Public
Bbudalavijay2001@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024

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 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