Skip to main content
100%

pie chart

✓ Published0🌍 Public
Ddeekshakondam@gmail.com
Last edited Mar 26, 2025
Created on Mar 26, 2025
Forked from Hello Viz

This pie chart displays the relative population counts of three penguin species: Adelie, Gentoo, and Chinstrap. The visualization loads a CSV file from a GitHub gist to retrieve the species count data. Using D3 v7, the example constructs the chart with `d3.pie` to compute arc segments and `d3.arc` for the circular slices, rendered with SVG paths. It applies an ordinal color scale via `d3.scaleOrdinal` and includes an SVG-based legend, positioning each segment and label within a 500x400 viewport.

AI-generated description
MIT Licensed

Similar vizzes