Activity6_Task2
✓ Published2🌍 Public
This visualization shows the proportion of IMDb movie ratings across six genres, with each genre displayed as a horizontal stacked bar chart. The bars are segmented by five rating categories, from "below 5.0" to "above 8.5", allowing comparison of rating distributions between genres. The chart uses D3.js v7 to load CSV data, stack the percentage values via `d3.stack()`, and render the visualization as SVG. Hovering over a segment triggers a tooltip showing the exact percentage for that rating category. The code employs `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisBottom` for scales and axes, with colors assigned via a categorical scale.
AI-generated descriptionMIT Licensed