Activity 7 Q1 Pie Chart - using HR data analysis
✓ Published2🌍 Public
This pie chart visualizes training costs by division, aggregating individual employee records from a CSV file into total spending per division. The chart renders as an SVG using D3 v7’s `pie()` and `arc()` generators, with `scaleOrdinal` and `schemeCategory10` assigning colors to each division slice. Division names appear on the slices via `arcGen.centroid`, while a separate title labels the chart. The data is loaded asynchronously with `csv()`, summed through a `Map` reduce, and the visualization fills the full browser window.
AI-generated descriptionMIT Licensed