Sriram ice 7 pie chart
✓ Published0🌍 Public
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 descriptionA demonstration of how to start using D3 version 6.
MIT Licensed