Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Activity7_Task1

Public visualization

Viewing a saved revision (read-only)

fcf61888398744e8b844208516016ae0

Fork of Activity7_Task1

0 stars0🌍 Public
Ssaimanvith22@gmail.com
Last edited Nov 4, 2024
Created on Nov 4, 2024
Forked from Activity7_Tutorial

This D3.js (v6) SVG pie chart visualizes species distribution from a CSV file fetched from a GitHub repository. The pie chart displays each species as a colored slice with a text label at its centroid, using a custom ordinal color scale. A legend is also rendered, mapping species names to their corresponding colors. The chart is constructed using `d3.csv`, `d3.scaleOrdinal`, `d3.pie`, and `d3.arc`, with slices and legend elements appended via `d3.select` and the `.join` operator for data-driven rendering.

AI-generated description

A demonstration of pie