🌍 Public
Viewing a saved revision (read-only)
c55a9015fc404e9f8b736354c59eac5e
Task_9_Question_1
A pie chart displays the distribution of pitch types in baseball, with each slice representing a pitch name and sized by its total pitch count. The chart uses a D3 v6 selection to append SVG paths and text labels, with a d3.scaleOrdinal color scheme for slice differentiation. Data is loaded from a remote CSV file via d3.csv, and the pie layout (d3.pie) and arc generator (d3.arc) calculate the slice geometry, with labels positioned at arc centroids.
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.