Skip to main content
100%

Activity7-Q1

✓ Published1🌍 Public
119n81a0581sunny@gmail.com
Last edited Nov 7, 2024
Created on Nov 6, 2024
Forked from Hello VizHub

This interactive pie chart visualizes total movie ratings by genre, with a legend and tooltip for detailed values. The code uses D3.js v7, loading CSV data and aggregating it with `d3.rollup` and `d3.sum`, then generating arcs via `d3.pie` and `d3.arc`. A tooltip appears on mouseover, and the SVG is styled with CSS, featuring a color scale using `d3.scaleOrdinal` with `d3.schemeCategory10`. The chart is centered with extra space allocated for the legend, and the title explicitly states "Total Ratings by Genre."

AI-generated description
MIT Licensed

Similar vizzes