tutorial task 2
✓ Published0🌍 Public
This visualization shows the distribution of IMDb movie ratings across six genres, with stacked horizontal bars displaying the percentage of movies in five rating categories from below 5.0 to above 8.5. The code uses D3 v7’s `d3.stack()` to compute the stacked data, `d3.scaleOrdinal` for color mapping, and `d3.scaleBand`/`d3.scaleLinear` for axes. An interactive tooltip appears on mouseover, showing the exact percentage for each genre-rating segment. Data comes from the local `data.csv` file, and the SVG is rendered with custom styling from `styles.css`.
AI-generated descriptionMIT Licensed