Skip to main content
100%

Untitled

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

A donut chart displays the distribution of students across university majors, with each slice labeled by its proportion and a legend pairing colors to majors. The visualization loads course data from a CSV file via `d3.csv`, then uses `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to compute slice geometry and assign categorical colors from a fixed palette. Values are formatted with `d3.format` and rendered as text labels directly on the chart.

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