Skip to main content
100%

TAsk8 T2

✓ Published2🌍 Public
Ssruthimreddy6@gmail.com
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Hello VizHub

This stacked bar chart shows the percentage distribution of IMDb movie ratings across six genres, with each genre as a horizontal bar broken into five rating segments from below 5.0 to above 8.5. Hovering over a segment reveals a tooltip with the exact percentage for that rating category within the selected genre. The visualization is built using D3 v7, employing `d3.stack()`, `d3.scaleLinear()`, and `d3.scaleBand()` to construct coordinates, while the data comes from a local CSV file containing genre and rating percentage values, rendered as SVG rectangles.

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