🌍 Public
Viewing a saved revision (read-only)
ae3cc0bcda794ec1b1cd51fea4bee501
Assignment 2 - Question-1
This pie chart displays animal species data, with each slice labeled by its value in thousands and accompanied by a color-coded legend. The visualization uses d3.pie and d3.arc to generate the chart, with d3.scaleOrdinal mapping species names to a fixed palette. Data is loaded asynchronously from a CSV file via d3.csv. Text labels inside slices use arc.centroid for positioning, while legend entries are manually placed with SVG elements.
AI-generated description