Skip to main content
100%

Activity6

✓ Published0🌍 Public
Kkeerthi.yanala104@gmail.com
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

This stacked bar chart displays the percentage distribution of IMDb rating levels across movie genres, with each genre represented as a horizontal bar. The visualization uses D3.js version 7 to render SVG elements, employing `d3.stack()` and `d3.scaleOrdinal` for color mapping. Interactive tooltips appear on hover, showing precise percentages for each rating category using `event.pageX` and `event.pageY` positioning. The chart reads from a local CSV file and includes axis labels and a title for context.

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