🌍 Public
Viewing a saved revision (read-only)
a03596ce143142b8a10edad27f9792c2
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