🌍 Public
Viewing a saved revision (read-only)
c02b8a4adafc43498021eed0b84af184
Activity6_task2
This stacked bar chart visualizes the percentage of IMDb rating levels across movie genres, revealing how genre influences audience ratings. Hovering over any bar segment displays a tooltip with the exact percentage for that rating category within the genre. The chart uses D3 v7’s `d3.stack()` to create stacked series, `d3.scaleBand()` for genre positioning, and `d3.scaleLinear()` for percentage values. Data is loaded from a CSV file and rendered as SVG rectangles with color-coded rating categories.
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.