Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of Pie Chart ICE-7

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

Fork of Fork of Fork of Pie Chart ICE-7

0
Yyaswanthsen
Last edited Mar 10, 2023
Created on Mar 10, 2023

This pie chart visualizes monthly expenditures by department, using color-coded slices with department labels positioned at each arc’s centroid. A legend to the right maps each color to its department and expenditure value. The code loads CSV data via `d3.csv` (D3 v5), then uses `d3.pie` and `d3.arc` to generate the SVG paths, with `d3.scaleOrdinal` assigning colors. The visualization is rendered as an SVG with a fixed 960×500 canvas.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed