Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment-2 Question-1

Public visualization

Viewing a saved revision (read-only)

c60faa917ce84cd5a1e4c668c7a226de

Assignment-2 Question-1

0 stars0🌍 Public
Aarthireddykota@my.unt.edu
Last edited Apr 13, 2024
Created on Apr 13, 2024

This pie chart displays the distribution of animal species by count, with each slice labeled with its value in thousands and accompanied by a legend. The visualization fetches data from a GitHub-hosted CSV file using `d3.csv`, then constructs the chart with `d3.pie` and `d3.arc` for the segments, while `d3.scaleOrdinal` assigns colors. Value labels are formatted via `d3.format` and positioned using `arc.centroid`. The D3 v5 code renders to an SVG canvas and includes styled legend rects and text elements.

AI-generated description