🌍 Public
Viewing a saved revision (read-only)
977022564191428599f3c21797aa980f
Activity6_Task2
This stacked bar chart displays the percentage of IMDb rating levels across six movie genres, showing how rating distributions vary by genre. Each genre has a horizontal bar divided into five colored segments representing rating ranges from below 5.0 to above 8.5. The visualization uses d3.stack() to compute stacked segments, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Hovering over any segment triggers a tooltip displaying the exact percentage for that rating level within the selected genre, with data sourced from a CSV file and rendered as SVG.
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.