Viewing a saved revision (read-only)
24a9a6210c7649df84f8e98028129c30
Activity 6_Task 2_Questions
A stacked horizontal bar chart visualizes the distribution of IMDb ratings across eight movie genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5." The chart reads values from a CSV file using D3's `d3.stack` and `d3.scaleBand` for the genre axis, while `d3.scaleLinear` handles the percentage axis. Color-coded segments use `d3.scaleOrdinal`, and interactive tooltips appear on mouseover via D3 v7 event handlers, displaying the exact percentage for each rating segment.
AI-generated descriptionThe impact of genre on movie ratings
This stacked bar chart gives the student's marks depending on their study hours. The aim is to show the impact of study hours on student's marks. When the mouse hovers over each bar, you can see pop-ups of accurate marks of each student of the study hours. Total percentage is 1, representing 100%.