Skip to main content
100%

Viz_shruthik

✓ Published0🌍 Public
Ssaishruthik2361@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Viz1

This example visualizes the distribution of COVID-19 cases across countries using a pie chart built with D3 v6. It loads data from a remote CSV file and renders each country as a slice, with size proportional to total cases. Hovering over a slice displays a tooltip showing the exact case count and percentage. The code uses d3.pie, d3.arc, d3.scaleOrdinal, and d3.select for SVG rendering, plus an interactive tooltip bound to mouseover events.

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