Skip to main content
100%

Activity8_Task2_Pie Chart

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

This pie chart displays the distribution of student counts across different majors at the University of North Texas, using proportional slices with numeric labels and a color-coded legend. The visualization loads CSV data from a GitHub gist using d3.csv, then applies d3.pie to compute arc angles and d3.arc for SVG path generation. Color mapping uses d3.scaleOrdinal with custom section colors, while d3.format abbreviates student values in thousands. The chart renders as SVG with appended legends, text labels, and styled rectangles indicating each major's name and count.

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