Skip to main content
100%

Fork of Task 7

✓ Published1🌍 Public
Ssaimanvith22@gmail.com
Last edited Nov 4, 2024
Created on Nov 4, 2024

This pie chart shows the distribution of penguin species from a CSV dataset, displaying each species with its corresponding count labeled directly on the slices. The visualization uses D3 v6’s `pie()` and `arc()` generators to compute slice angles and paths, with `scaleOrdinal()` assigning categorical colors. Data is loaded asynchronously via `csv()` from a GitHub URL, and `d3.rollups()` counts occurrences per species before the SVG group is translated to center the chart. Slice labels combine species name and count, positioned using `arcGenerator.centroid()`.

AI-generated description
MIT Licensed

Similar vizzes