Activity6_Task2
✓ Published1🌍 Public
This visualization shows the distribution of movie ratings across different genres using a stacked horizontal bar chart. Each bar represents a genre, segmented proportionally into five rating categories from below 5.0 to above 8.5, with a legend clarifying the color encoding. The code uses D3 v7’s `d3.stack()` to compute stacked series, `d3.scaleOrdinal` for category colors, and `d3.scaleBand` for genre positioning. Interactive tooltips appear on mouseover, displaying the percentage value. The chart is rendered as SVG, with data sourced from a CSV file containing genre-specific rating proportions.
AI-generated descriptionMIT Licensed