Skip to main content
100%

Activity6_2

✓ Published0🌍 Public
Rrishikareddy181@gmail.com
Last edited Apr 4, 2025
Created on Apr 3, 2025

This stacked bar chart visualizes the distribution of average movie ratings by genre, showing the percentage breakdown across five rating categories. The visualization uses d3.stack() to compute stacked series and d3.scaleOrdinal() for color encoding, with a tooltip revealing exact percentages on hover. The SVG rendering employs d3.axisBottom() with percentage formatting and a custom color palette, while a band scale positions genres vertically. Mouseover events trigger opacity changes and display the tooltip with formatted rating percentages.

AI-generated description
MIT Licensed

Similar vizzes