Viewing a saved revision (read-only)
9541a6d454d54ec98a8354d939147f4c
Activity6_Task2
This visualization uses a stacked horizontal bar chart to compare IMDb rating distributions across six film genres, with each bar segmented into five rating brackets from "below 5.0" to "above 8.5". The chart reads percentages along the x-axis and genres along the y-axis, enabling quick comparison of how ratings cluster differently by genre. The implementation uses d3.stack to compute stacked segments, d3.scaleBand for the categorical y-axis, and d3.scaleLinear for the continuous x-axis. The SVG renders interactive tooltips on mouseover that display the exact percentage for each rating segment. The transparent background and custom color scale help distinguish the five rating categories.
AI-generated description