Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
MManideeprenikindi
Last edited Jul 23, 2023
Created on Jul 23, 2023
Forked from Hello VizHub

This pie chart displays the count of students in each major at UNT, with a legend identifying each major and its corresponding value. It is built with D3 v5, loading data from a CSV file via `d3.csv`, and renders the visualization using SVG. The pie chart is constructed with `d3.pie` and `d3.arc` to generate the segments, while `d3.scaleOrdinal` assigns colors to the sections. The chart includes labels showing formatted values (e.g., "50K") and a legend with colored squares and text labels for each major.

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