Skip to main content
100%

Activity-8.2

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

A donut chart displays the count of students from each major at UNT, with each slice labeled with its value in thousands and a corresponding color-coded legend. The visualization loads CSV data from a GitHub gist using D3's `csv` method. It constructs the pie layout with `d3.pie` and `d3.arc`, maps colors via `d3.scaleOrdinal`, and renders SVG paths and text elements, with legends positioned manually.

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