Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 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
MIT Licensed

Similar vizzes