Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task 9 pie chart Q1

Public visualization

task 9 pie chart Q1

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed