Skip to main content
100%

Pie Chart Activity 8 Task 2

✓ Published0🌍 Public
VVishnu Sudireddy
Last edited Jul 19, 2023
Created on Jul 17, 2023
Forked from D3 Starter

This pie chart displays the count of students from each major at UNT, with each slice colored and labeled with a value in thousands. The visualization uses D3 v5 to load CSV data, generate the pie layout with `d3.pie()` and `d3.arc()`, and render SVG paths. A legend on the right maps colors to major names, while slice labels use `format('.4~g')` for compact numerical display. The code also applies `scaleOrdinal` for color mapping and custom styling via CSS.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes