🌍 Public
Viewing a saved revision (read-only)
b24761f2bdb54f0aa5de2f8f8abd3af2
Acitivity6_task2
A stacked bar chart visualizes how movie genres relate to IMDb rating categories. Each horizontal bar represents a genre and is divided into five colored segments for rating brackets from below 5.0 to above 8.5, scaled as proportions of 100%. Hovering highlights a segment and displays a tooltip with the exact percentage. Built with D3 v7, it uses `d3.stack`, `d3.scaleOrdinal`, `d3.scaleBand`, and `d3.scaleLinear` to generate SVG rectangles and axes from CSV data.
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.