🌍 Public
Viewing a saved revision (read-only)
f27d8289693340a197af68e28609c121
Activity 7_Q1
This visualization shows the box office collections of Prabhas films as a pie chart, with each slice labeled with its collection amount in millions and a legend listing film names. The dataset is loaded from a GitHub Gist using `d3.csv`. The chart is rendered with SVG paths generated by `d3.pie` and `d3.arc`, while `d3.scaleOrdinal` assigns colors from a predefined array. Labels and legend text are positioned using `arc.centroid` and fixed translations, with D3 v5 used throughout.
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.