activity8_task2
A stacked bar chart visualizes the proportional ratings of five movie genres (Action, Adventure, Comedy, Drama) across five rating categories (action, comedy, drama, thriller, horror). Each horizontal bar is segmented by category, with segment lengths proportional to the percentage values from a CSV file. The chart uses D3 v7’s stack, scaleOrdinal, scaleLinear, and scaleBand APIs, rendered as SVG rectangles with hover tooltips showing exact percentages. Axes are drawn with d3.axisLeft and d3.axisBottom, and the visualization includes a legend and title.