Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 7 Q1 Pie Chart - using HR data analysis

Public visualization

Viewing a saved revision (read-only)

a8f9235417ff4d2288d2f791a4639039

Activity 7 Q1 Pie Chart - using HR data analysis

0 stars2🌍 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