🌍 Public
Viewing a saved revision (read-only)
4ea2755345cc42d8aa2a36aca3d71b70
Activity6_Task2
This stacked bar chart shows the percentage distribution of five IMDb rating levels across six movie genres, demonstrating how genre influences audience ratings. The visualization uses a diverging color scheme to distinguish rating categories and includes hover tooltips that display exact percentages. The code employs D3 v7 with the `d3.stack()` method for data stacking, `d3.scaleOrdinal()` for color mapping, and `d3.scaleLinear()` with `d3.scaleBand()` for axes. Data is loaded from a CSV file and rendered as SVG rectangles within an HTML page.
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.