Skip to main content
100%

Sriram ice 7 pie chart

✓ Published0🌍 Public
SSriram-Voruganti
Last edited Mar 11, 2023
Created on Mar 10, 2023
Forked from Hello VizHub

This pie chart visualizes monthly expenditures by department, with each slice labeled and colored distinctly. A legend on the right lists each department alongside its formatted dollar amount. The code uses d3.pie and d3.arc to generate the segments, d3.scaleOrdinal for coloring, and d3.csv to load data from a remote GitHub gist. Text labels are positioned using the arc centroid method, while the legend is built with SVG rectangles and text elements.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes