Skip to main content
100%

Activity_6_2

✓ Published1🌍 Public
Ssahaspragna6@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This visualization presents a stacked bar chart showing the percentage distribution of movie ratings (from "one" to "five") across different genres, with each bar segment colored to represent a rating category. Hovering over any segment displays a tooltip with the precise percentage for that rating within the genre, and the total for each bar sums to 100%. Built with D3 v7, the chart uses `d3.stack()` to compute the stacked segments, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand` for genre positioning on the y-axis. Data is derived from the included CSV file, rendered as SVG elements with interactive mouse events.

AI-generated description

Real Estate Sales

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%.

MIT Licensed

Similar vizzes