Task8_Tutorial2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of films falling into one of five rating brackets from “below 5.0” to “above 8.5.” The visualization uses d3.stack() to compute the stacked series and d3.scaleOrdinal with a custom color palette for the rating categories. D3’s scaleLinear and scaleBand position the bars and axes, while mouseover events trigger a tooltip that displays the exact rounded percentage for each segment. The SVG is rendered with axis labels, a title, and genre labels along the y-axis.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed