🌍 Public
Viewing a saved revision (read-only)
8b9d9194333848cfa88be4fc0216583a
Activity6_Task2
This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar normalized to represent 100% of ratings within a genre across five rating brackets. The visualization uses d3.stack() to compute stacked segments and d3.scaleOrdinal for color encoding. Hovering over any segment triggers a tooltip displaying the precise percentage for that rating level using d3.format('.2f'). The SVG-based chart renders categorical genres on a band scale and percentages on a linear axis, with data sourced from a CSV file.
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.