Skip to main content
100%

Activity7_Question1

✓ Published0🌍 Public
VVENKATESWAR RAO CHINTA
Last edited Nov 5, 2024
Created on Nov 5, 2024

This example shows a pie chart of budget allocation percentages across departments within an organization, with each slice labeled by its value and a legend mapping colors to department names. The code loads CSV data from a GitHub URL, converts budget values to numbers, and uses `d3.pie` and `d3.arc` to compute and draw the chart’s SVG paths. It applies `d3.scaleOrdinal` for slice colors, appends text labels using arc centroid positions, and renders a legend with rectangles and text. The visualization is static, with no interactive features or transitions.

AI-generated description
MIT Licensed

Similar vizzes