activity6_question2
✓ Published0🌍 Public
This visualization shows the distribution of movie ratings across six genres, with each genre represented as a horizontal stacked bar that breaks down the proportion of films falling into five rating brackets, from below 5.0 to above 8.5. The chart uses D3.js's `d3.csv` to load the data and `d3.stack` to compute the cumulative segments, with `d3.scaleOrdinal` supplying the categorical color scheme. Each bar segment displays a tooltip with the exact percentage via SVG `title` elements, and the axes are rendered using `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionMIT Licensed