Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task 9 pie chart Q1

Public visualization

Viewing a saved revision (read-only)

69fa50d7bf0543a5ad023ada8279c1ce

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

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.