Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

50832ff67b474682b3703a380b936ae3

Pie Chart

0 stars0🌍 Public
Sshabanasyed2266@gmail.com
Last edited Oct 28, 2025
Created on Oct 28, 2025
Forked from D3 Starter

A pie chart visualizes the distribution of pet types within an adoption dataset. The chart displays proportional slices for each pet type, using color from the `d3.schemeSet2` scale, with slice labels and a legend positioned to the right. The visualization is built with D3 v7, using `d3.rollups` to count records from a CSV file loaded via `d3.csv`, and `d3.pie` to compute arc data. Slices are rendered as SVG paths with `d3.arc`, and hover interactions trigger a tooltip showing the pet type and count.

AI-generated description