Pie chart
✓ Published0🌍 Public
This pie chart displays employee attrition proportions from a CSV dataset, showing the distribution between two categories. The visualization uses D3 v7’s `d3.pie` and `d3.arc` to generate SVG path segments, with a color scale mapping category labels to distinct hues. A custom tooltip appears on mouseover, revealing exact counts, while a legend with colored rectangles and text labels identifies each slice. Data aggregation relies on `d3.rollup` to count occurrences by the Attrition field, and the chart is rendered at a fixed 500x500 pixel SVG size with a centered group transform.
AI-generated descriptionMIT Licensed