🌍 Public
Viewing a saved revision (read-only)
0d2acb33807141c9ba12e267676f7451
Activity9_Q1
This donut chart shows global video game sales aggregated by genre, using a pie slice for each genre with corresponding labels and a color legend. Built with D3 v6, the code loads data from a CSV file via `d3.csv`, aggregates it with `d3.rollups` and `d3.sum`, and renders the chart using `d3.pie` and `d3.arc` paths. Labels are positioned with `d3.arc.centroid`, and a legend is added using `d3.selectAll`.
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.