Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

pie chart

Public visualization

Viewing a saved revision (read-only)

b9b3eeb7e3394c17b8055877ec3bbc8d

pie chart

0 stars0🌍 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