task 9 pie chart Q1
✓ Published0🌍 Public
This pie chart displays the percentage of climate-related spending allocated across different government departments. The visualization uses D3.js v7 to load CSV data from a GitHub gist, then encodes the spending values with a categorical color scheme and labels each slice with its department name and percentage. The chart includes a legend on the right side of the SVG canvas, and it uses d3.pie() for slice calculations, d3.arc() for constructing the pie geometry, and d3.scaleOrdinal for coloring.
AI-generated descriptionMIT Licensed