Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This pie chart visualizes the count of students from each major at UNT, with each slice labeled and color-coded. It loads a CSV dataset from a GitHub gist, processes it with `d3.csv`, and renders the chart using D3’s `pie` and `arc` generators. The visualization includes proportional slice labels, a legend showing major names and student counts, and uses `scaleOrdinal` for color mapping. Slices are positioned with arc centroids, and the chart is drawn as SVG elements.

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