🌍 Public
Viewing a saved revision (read-only)
cde258d8175546a8a2558e57a2bde9de
Activity6_2
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