Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, showing the proportion of films falling into five rating brackets from below 5.0 to above 8.5. Each genre’s horizontal bar is segmented by color, with hover tooltips revealing exact percentages. The visualization uses D3.js v7 with SVG rendering, employing `d3.stack()` for data transformation, `d3.scaleLinear()` and `d3.scaleBand()` for axes, and `d3.scaleOrdinal()` for color mapping. Data comes from a CSV file, and the chart includes custom fonts and styling via CSS.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the percentage of each rating level within different movie genres. The aim is to show the impact of genre on movie ratings. When the mouse hovers over each bar, you can see pop-ups of accurate percentage of each rating level within each genre. Total percentage is 1, representing 100%.