Skip to main content
100%

Activity 8 Q2

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

A pie chart displays the count of students from each major at UNT, with values labeled in thousands and a color-coded legend. Using D3 v5, the code fetches CSV data from a GitHub gist, applies `d3.pie` and `d3.arc` to generate SVG path segments, and uses `d3.scaleOrdinal` for section colors. Labels are positioned via the arc centroid, and legends annotate majors with corresponding student counts.

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