Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of piechart ic7

Public visualization

Viewing a saved revision (read-only)

14ad8d077e2945e9b01a79b846ce50c3

Fork of Fork of piechart ic7

0 stars0🌍 Public
Rradhadevarapu
Last edited Mar 12, 2023
Created on Mar 12, 2023

This visualization displays the cost of different master’s degree majors as a pie chart, with each slice representing a course’s total cost. A legend on the right pairs each colored slice with the course name and its cost in thousands. The chart uses D3 v5’s `pie` and `arc` generators to compute angles and render SVG paths, with `scaleOrdinal` assigning colors to slices. Data is loaded asynchronously from a CSV file via `d3.csv`, and the legend values are formatted using `d3.format`.

AI-generated description