Viewing a saved revision (read-only)
215a991d1d514701a375088e151f8753
Activity6_Question2
This stacked bar chart visualizes the distribution of music genre affinities for Tollywood singers, with each bar segment representing the percentage of a singer's connection to genres like Bollywood, Classical, Pop, Folk, Sufi, and Rap. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand() for the categorical singer axis, and d3.scaleLinear() for the percentage scale. Mouseover interactions trigger opacity changes and a tooltip that displays the exact percentage for each genre-singer combination, with colors assigned via d3.scaleOrdinal(). The chart derives its data from the provided CSV dataset, rendering as an SVG.
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%.