Skip to main content
Public

Share visualization

Loading preview…

task 9 pie chart Q1

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

task 9 pie chart Q1

0
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