Skip to main content
100%

Pie Chart ICE-7

✓ Published0🌍 Public
SSYAM TEJ
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from Fork of Pie Chart

This pie chart shows employee attrition distribution with two categories, "Yes" and "No", colored purple and red using a d3.scaleOrdinal. The code loads CSV data via d3.csv, aggregates counts with d3.rollup, and renders SVG paths using d3.pie and d3.arc. Interactive tooltips appear on mouseover, and a legend is positioned within the chart. The visualization uses D3 v7 and renders to an SVG element with a fixed 500x500 viewport.

AI-generated description
MIT Licensed

Similar vizzes