Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Aakshayvenishetty1437
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

A pie chart displays the count of students from each major at UNT, using a dataset of courses loaded from a remote CSV URL. The visualization renders as an SVG with colored slices, value labels, and a legend showing majors and student counts. It uses D3 v5 APIs including `pie`, `arc`, `scaleOrdinal`, and `csv` to compute arc segments, assign colors, and fetch data. The chart is positioned via SVG transforms, 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