Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
BBhavyaMammai
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This pie chart visualizes the count of students from each major at UNT, using a dataset fetched from a GitHub gist via `d3.csv`. The chart uses D3 v5 to compute arc paths with `d3.pie` and `d3.arc`, and maps categorical colors via `d3.scaleOrdinal`. Each slice includes a formatted label showing the student count in thousands, while a legend lists each major with its corresponding color and value. The visualization is rendered as an SVG element, with styling applied through CSS.

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.
MIT Licensed

Similar vizzes