Skip to main content
100%

Pie Chart

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

A pie chart displays the count of students across different majors at the University of North Texas, with each slice labeled with its value in thousands and accompanied by a legend. The visualization loads CSV data from a GitHub repository, parses it via `d3.csv`, and renders the chart using SVG with `d3.pie` and `d3.arc`. Slice colors are assigned using `d3.scaleOrdinal`, and labels are positioned via the arc centroid method.

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