Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

6e47f54e563344659ffe92dd0934f236

Reusable D3 Scatter Plot

0 stars0🌍 Public
Rr79162810@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

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