Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
MMonish Galla
Last edited Apr 10, 2024
Created on Apr 9, 2024
Forked from Pie Chart

This pie chart shows the distribution of person types from a CSV file, using a color-coded slice for each category with labels and a corresponding legend. The chart is built with D3.js v7, using `d3.pie` to compute the arc segments, `d3.arc` for the path geometry, and `d3.scaleOrdinal` with `d3.schemeCategory10` for the color palette. Data is loaded via `d3.csv` from a GitHub-hosted source, and mouseover events log the person type to the console.

AI-generated description
MIT Licensed

Similar vizzes