Fork of IMDb Movie ratings
This stacked bar chart shows the percentage distribution of IMDb ratings across five movie genres, with each genre’s bar segmented into five rating brackets from below 5.0 to above 8.5. Hovering over a segment displays a tooltip with the exact percentage for that rating level within the selected genre. The visualization uses D3 v7’s `d3.stack()` to compute the stacked data and `d3.scaleOrdinal()` for the color mapping, rendering the chart as SVG elements. The data originates from a CSV file and is loaded asynchronously via `d3.csv()`.
AI-generated descriptionThe 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%.