Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

assignment 2

Public visualization

Viewing a saved revision (read-only)

4b9fc2cc7dfe49e7b3435cba2d6ec04e

assignment 2

0 stars0🌍 Public
CChiranjeeviUppala@my.unt.edu
Last edited Mar 26, 2025
Created on Mar 26, 2025

This example shows a reusable pie chart of scores by name, rendered as SVG. It loads CSV data from a GitHub gist and converts the score field to numbers. The visualization uses a modular `pieChart` function with chainable accessor methods, building arcs via `d3.pie()` and `d3.arc()`, filling slices with a categorical color scale, and labeling each slice with its category name. The chart is centered within a 500x500 SVG using D3 v6.

AI-generated description