🌍 Public
Viewing a saved revision (read-only)
a06f93d20c10464eae49763512271990
Activity SDV Pie Chart
This pie chart visualizes the distribution of total runs scored by each batting team from an IPL deliveries dataset. The chart aggregates data using `d3.rollup` and `d3.sum`, then renders slices with `d3.arc` and `d3.pie`, using `d3.schemeCategory10` for color encoding. Each slice is labeled with its team name, and the example demonstrates loading D3 via UNPKG alongside local ES6 modules, with both a standalone script and a reusable `piePlot` function that includes a legend.
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.