Skip to main content
100%

Pie chart

✓ Published0🌍 Public
TTejasriKari@my.unt.edu
Last edited Apr 2, 2025
Created on Apr 2, 2025

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 description
MIT Licensed

Similar vizzes