Question-Activity-7
✓ Published1🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed