ACTIVITY2_R
✓ Published0🌍 Public
This horizontal stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, with each bar segmented into five rating categories from “below 5.0” to “above 8.5.” The chart uses d3.stack() to compute the stacked data and d3.scaleBand for the categorical y-axis, while d3.scaleLinear maps the percentage values. D3 v7 appends SVG rectangles for each segment, with mouseover tooltips displaying the exact percentage per rating category. The data comes from a CSV file loaded via d3.csv, and the chart includes custom color scales and axis labels.
AI-generated descriptionMIT Licensed