Activity 6 task2 Q 2.2
This stacked bar chart displays the distribution of product ratings across five categories, showing how ratings levels contribute to the total count for each genre. The chart uses d3.stack with five ordinal color-coded layers, from "Below 3.0 (Poor)" to "Above 5.0 (Outstanding)," rendered as SVG rectangles. Axes labels clarify product categories on the x-axis and number of products on the y-axis. The chart is built with d3.v7, utilizing d3.scaleBand for categories, d3.scaleLinear for counts, and d3.axisBottom and d3.axisLeft for tick marks.
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%.