🌍 Public
Viewing a saved revision (read-only)
1f6d404a06f945e68950734103cab0fe
Reusable D3 Scatter Plot
This scatter plot, built with D3 v7, visualizes employee data from a CSV file using a pie chart, with slice sizes proportional to the number of projects each employee worked on. The code uses `d3.csv` to load data and transform it into name-value pairs, `d3.pie()` to compute arc angles, and `d3.arc()` to generate SVG path geometries. A categorical color scale from `d3.scaleOrdinal` with `d3.schemeCategory10` fills the slices, and text labels appear at arc centroids, while an SVG legend maps colors to employee names and project counts.
AI-generated description