🌍 Public
Viewing a saved revision (read-only)
2756e8f60d104a7ea506463d5ceefd1f
Activity6_Task2
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 description