Skip to main content
100%

Fork for country and budget

✓ Published0🌍 Public
RRakshithaRao27
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from Pie Chart

This visualization shows the 2012 budget allocations for various countries as a donut chart, with each segment labeled with its value in thousands and a corresponding legend. The chart uses d3.pie and d3.arc to generate the ring geometry, with d3.scaleOrdinal mapping categorical colors to the data. Data is loaded from a CSV file via d3.csv, and d3.format is used to abbreviate the numeric labels. The SVG rendering includes explicit text positioning through the arc centroid, and legends are appended with rectangles and text.

AI-generated description
MIT Licensed

Similar vizzes