Skip to main content
100%

Activity 7_Q1

✓ Published1🌍 Public
KKrishna.
Last edited Nov 2, 2025
Created on Nov 2, 2025
Forked from Activity 7

This interactive pie chart displays the distribution of movie ratings (G, PG, PG-13, R) across different genres. A dropdown menu allows viewers to toggle between individual rating classes or their total, with each genre represented as a colored slice whose angle encodes the count. The visualization uses D3 v7 APIs including `d3.pie`, `d3.arc`, and `d3.scaleOrdinal` to generate the SVG, while `d3.csv` fetches data from a remote gist. Hovering over a slice reveals a tooltip with the genre and exact value.

AI-generated description
MIT Licensed

Similar vizzes