{"version":"1.0","type":"rich","title":"activity 6 tutorial 2","description":"This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the proportion of films within a rating category. The code loads data from a CSV file and applies `d3.stack()` to compute the stacked layout, then renders the chart as SVG using `d3.scaleBand` for genres and `d3.scaleLinear` for percentages. Interactive tooltips are implemented with mouse events that display the exact percentage for each rating category on hover, while a color-coded legend identifies the rating groups.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/e7fe07f5525346c995333bc111dec885?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}