🌍 Public
Viewing a saved revision (read-only)
1fdeb1424ec141729e174bc66abecc34
Assignment1-question1
This visualization presents the distribution of genres as a pie chart, using data loaded from a CSV file. The chart displays each genre as a colored slice with corresponding values, and includes a legend and value labels. Built with D3.js v7, it uses `d3.select`, `d3.scaleOrdinal`, `d3.pie`, and `d3.arc` to construct the SVG. The code defines a reusable pie chart function and imports the data via `d3.csv`.
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.