Skip to main content
100%

task 9 pie chart Q1

✓ Published0🌍 Public
RRakesh Yadav
Last edited Apr 22, 2024
Created on Apr 22, 2024

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 description
MIT Licensed

Similar vizzes