Activity6_Q2
✓ Published0🌍 Public
This visualization shows the distribution of cinema ratings across six movies, with each bar divided into five rating segments (below 5.0, 5.0-6.5, 6.5-7.5, 7.5-8.5, and above 8.5) as percentages that sum to 100%. The stacked bar chart uses d3.stack() to group the horizontal bars, d3.scaleLinear for the percentage axis, and d3.scaleBand for movie categories. Interactive tooltips display exact percentages on mouseover using event handlers, while SVG rectangles with a color scale make each rating segment distinct. The data comes from the provided Cindata.csv file.
AI-generated descriptionThe Rating of different restaurants
This stacked bar chart gives the percentage of each Movie.
MIT Licensed