Activity6_Task2
✓ Published0🌍 Public
This visualization presents the distribution of IMDb movie ratings across five genres, using a horizontal stacked bar chart where each bar segment represents the proportion of films falling into specific rating ranges, from "below 5.0" to "above 8.5." The chart is rendered as SVG using D3 v7. The implementation uses `d3.stack` to compute the cumulative segments, `d3.scaleOrdinal` for categorical colors, and `d3.axisBottom` and `d3.axisLeft` for the axes. A custom tooltip is created with `d3.select` and `d3.style`, showing the exact percentage on mouseover for each segment. Data comes from a CSV file containing genre-specific rating percentages.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed