Skip to main content
100%

Assignment-2 Question-1

✓ Published0🌍 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
MIT Licensed

Similar vizzes