Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Task9_Question1_PieChart

Public visualization

Task9_Question1_PieChart

0 stars0๐ŸŒ Public
Jjyothirmaijyothi2017@gmail.com
Last edited Apr 28, 2024
Created on Apr 28, 2024

A pie chart visualizes the number of COVID-19 deaths by region, with each slice labeled with the death count in thousands and a legend mapping colors to regions. The D3 v5 code loads data from a remote CSV using `d3.csv`, computes slice geometry with the `d3.pie` layout and `d3.arc` generator, and colors slices via `d3.scaleOrdinal`. The chart is rendered as SVG, with the title and labels formatted using `d3.format`.

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.

Comments

Sign in to join the discussion.

MIT Licensed