pie chart
✓ Published0🌍 Public
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 descriptionMIT Licensed