Skip to main content
100%

tutorial2

✓ Published0🌍 Public
Ttsumanth619@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar representing the percentage of films falling into five rating bands from "Below 5.0" to "Above 8.5." Hovering over a segment displays an exact percentage in a tooltip. The visualization uses D3 v7’s `d3.stack()` to aggregate the data, `d3.scaleBand()` for the categorical genre axis, and `d3.scaleLinear()` for the numeric percentage axis, rendering as SVG with interactive mouse events.

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