Skip to main content
100%

Activity 8 Question 2

✓ Published0🌍 Public
MMichael Biancardi
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 the data loaded from a remote CSV file and rendered as SVG paths using D3 v5. Each slice is colored via `d3.scaleOrdinal`, and labels show values in thousands formatted with `d3.format` through the `.4~g` specifier. Legends, rendered as appended rectangles and text, map majors to their corresponding colors and totals. The chart uses `d3.pie` for arc generation and `d3.arc` for path construction, with a fixed outer radius of 175 pixels.

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