Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart Activity 8 Task 2

Public visualization

Viewing a saved revision (read-only)

6af6583a901d4df0a59443bab3a8c52e

Pie Chart Activity 8 Task 2

0 stars0🌍 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.