Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Pie Chart

0 stars0๐ŸŒ Public
RRohith Reddy
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from [TEST] Pie Chart

This pie chart displays COVID death rates per million for the top 20 states, using colored slices with labels and a corresponding legend that lists each state and its numerical value. The visualization is built with D3 v5, fetching data from a CSV via `d3.csv`, transforming it with `pie()` and rendering SVG paths using `arc()` and `arcGenerator.centroid`. Slice colors are assigned using `scaleOrdinal`, and the chart is presented on an SVG canvas with a fixed width and height.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed