Activity-6_2
✓ Published0🌍 Public
This visualization shows the distribution of movie ratings across six genres, using a stacked horizontal bar chart where each bar is divided into five rating categories from "Below 5.0" to "Above 8.5". The chart uses D3 v7 with an SVG rendering and a color legend to distinguish the rating segments. The data is hardcoded in the script, and the visualization includes an interactive tooltip that displays the percentage value of each segment when hovered over, with the segment slightly dimming on mouseover. The chart is built using `d3.stack()` for the stacked data structure, `d3.scaleBand()` for the y-axis genres, and `d3.scaleLinear()` for the x-axis percentages.
AI-generated descriptionMIT Licensed