🌍 Public
Viewing a saved revision (read-only)
40de3c147513426d8ee5ad8aec6f420b
activity7_Q1
This pie chart displays the distribution of animal conservation statuses, using counts from a CSV dataset to show proportional slices for each category. The visualization is rendered as an SVG using D3 v6, with the `d3.pie` and `d3.arc` functions generating the pie geometry, while a `d3.scaleOrdinal` with `d3.schemeCategory10` assigns colors to statuses. Labels on each slice include the status name and count, and a separate legend with colored rectangles and text appears to the right, positioned via manual SVG transforms.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.