Activity6_Task2
✓ Published0🌍 Public
This stacked bar chart visualizes the percentage distribution of genre ratings (Action, Comedy, Drama) across four movies, with the title “Rating according to genres.” Using D3 v7, the code reads CSV data, applies a linear x-scale for percentages and a band y-scale for movie names, and renders SVG rectangles via `d3.stack()`. A tooltip displays the exact rating percentage for each genre segment on mouseover, while a legend and axis labels clarify the grouping.
AI-generated descriptionMIT Licensed