🌍 Public
Viewing a saved revision (read-only)
f18016855d014fa89c97da2a47ea6124
Activity 7 Q1
This pie chart visualizes monthly expenditures broken down by department, with each slice colored distinctly and labeled. A corresponding legend on the right displays the department names alongside their numeric expenditure values in dollars. The visualization uses d3.arc to generate pie segments and centroids for label placement, d3.scaleOrdinal to map categories to the color palette, and d3.csv to load the monthly_expenditure dataset from a remote URL.
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.