Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2-Pie chart

Public visualization

Viewing a saved revision (read-only)

1afcacdddd374e74ba484bcd24951316

Assignment2-Pie chart

0 stars0🌍 Public
Vvullihanumantharao@gmail.com
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

This pie chart displays the distribution of student counts across different majors at UNT, with each slice labeled with its numeric value and accompanied by a color-coded legend. The visualization uses D3 v5 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to compute arc geometry and assign categorical colors, while rendering SVG paths and text elements. Data is fetched as CSV from a GitHub gist, and the chart positions its pie at (250,250) with a legend offset to the right, formatting values in thousands (e.g., "5K").

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.