Skip to main content
100%

Activity8_Task2

✓ Published2🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jul 12, 2023
Created on Jul 5, 2023
Forked from activity 8_Task 1

This example visualizes the distribution of student counts across academic majors at UNT, presenting the data as a pie chart with labeled segments and a corresponding legend. It loads student data from a CSV URL and uses D3 v5 APIs including `d3.csv`, `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.format` to generate the chart and its labels. The SVG rendering displays each major’s student count in thousands, with color-coded slices and a legend showing major names alongside their values.

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