🌍 Public
Viewing a saved revision (read-only)
3cb33ad4a53a4e859eb0424efa313bd4
Activity6_Task2
A stacked bar chart shows the percentage distribution of IMDb rating levels across six movie genres, with each genre represented by a horizontal bar divided into five rating categories. The visualization reveals how genres differ in their rating patterns, such as Documentaries having higher percentages of top ratings compared to Action films. Built with D3 v7, the chart uses `d3.stack()` to compute stacked segments, `d3.scaleBand()` for the y-axis genres, and `d3.scaleLinear()` for the percentage scale. Interactive tooltips display exact percentages on mouse hover using D3 event handlers.
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.