Fork of IMDb Movie ratings
This visualization uses a stacked bar chart to show the percentage of movies within six genres across five rating bands, from below 5.0 to above 8.5 on IMDb. Each bar is segmented into colored strips representing a rating category, with the full bar totaling 100% for the genre. The chart is built with D3 v7, using `d3.stack()` on the CSV data to compute the stacked segments, `d3.scaleBand` for the y-axis categories, and `d3.scaleLinear` for the percentage x-axis. Hovering over any rectangle triggers a tooltip that displays the exact percentage for that genre-rating combination via `d3.select` and event handlers. Text labels are rendered as SVG elements, and the chart is styled with custom CSS importing the Yanone Kaffeesatz font.
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%.