test
A stacked bar chart displays the percentage distribution of IMDb ratings across movie genres, showing how rating levels vary by genre. The chart uses a diverging color scheme and horizontal bars, with each genre represented as a segmented bar totaling 100%. Hovering over a segment reveals a tooltip with the exact percentage for that rating level. The visualization is built with D3.js v7, using `d3.stack()` for data stacking, `d3.scaleOrdinal()` for colors, and `d3.axisBottom()` for the percentage axis. Data comes from a CSV file processed with `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%.