Skip to main content
100%

Activity8Task2

✓ Published1🌍 Public
BBindumadhavi
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Activity8Tutorial2

This stacked bar chart visualizes the distribution of IMDb movie ratings across six languages, showing the percentage of ratings in each of five categories from below 3.0 to above 7.0. The chart uses d3.stack() to create stacked segments, with d3.scaleOrdinal assigning colors and d3.scaleBand for the categorical y-axis. Hovering over any segment displays a tooltip with the exact percentage for that rating level and language, implemented through mouse event handlers. The data comes from a CSV file and is rendered using SVG within a d3.v7 framework.

AI-generated description

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

MIT Licensed

Similar vizzes