Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Viewing a saved revision (read-only)

5e9e8018096a417ebc1f4da1b08acd22

Pie Chart

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