🌍 Public
Viewing a saved revision (read-only)
b7a7f097d886435c9df182c764ea8bdb
activity 7
A pie chart visualizes the distribution of employees across departments in an HR dataset. It shows the relative counts for each department as colored slices with hover tooltips revealing exact values. A legend identifies each department's color. Built with D3 v7, the code loads CSV data, aggregates counts using `d3.rollup`, and renders the chart with `d3.pie()` and `d3.arc()`, applying an ordinal color scale and SVG elements for the slices and legend.
AI-generated description