Viewing a saved revision (read-only)
9c0e214eec354b54928d87b0707b3181
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%.