6.2
✓ Published1🌍 Public
This chart shows the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of movies in a rating range, such as below 5.0 or above 8.5. The data is loaded from a CSV file and rendered as SVG dynamically using D3 v7. The visualization employs `d3.stack`, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand` for the y-axis. Interactive tooltips, built with `d3.select` and positioned via `event.pageX`, reveal exact percentages on mouseover.
AI-generated descriptionMIT Licensed