Skip to main content
100%

Activity 7 Q1 Pie Chart - using HR data analysis

✓ Published2🌍 Public
Ddivya.matavalam828@gmail.com
Last edited Apr 8, 2025
Created on Apr 6, 2025

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

Similar vizzes