TASK.8_TUTORIAL-2_Sahith
This stacked bar chart demonstrates how movie ratings vary across genres, revealing that documentaries and animations achieve higher proportions of excellent ratings while action films are heavily skewed towards poor ones. The visualization loads CSV data and uses D3.js v7 APIs including `d3.stack`, `d3.csv`, `d3.scaleOrdinal`, `d3.scaleBand`, and `d3.scaleLinear` to render the SVG. Interactive tooltips appear on hover, displaying the precise percentage for each rating category within a genre.
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%.