Skip to main content
100%

Question-Activity-7

✓ Published1🌍 Public
Kkotasc18@gmail.com
Last edited Nov 4, 2024
Created on Nov 4, 2024
Forked from Hello VizHub

This example visualizes the distribution of athletes across different sports using a pie chart. It loads a CSV dataset from a GitHub gist, groups the data by the sport column, and shows counts as pie slices with color-coded labels and a legend. The code uses D3’s `csv`, `pie`, `arc`, and `scaleOrdinal` APIs to generate the chart with a labeled x- and y-axis.

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