🌍 Public
Viewing a saved revision (read-only)
e93b0ae7c4e948a59ef98169d34a9a5e
No content available for this visualization.
Activity6_Task2
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 description