🌍 Public
Viewing a saved revision (read-only)
86f7a853d5f54d9fb9ed66d15ffc5c75
Activity6_Task2
A stacked bar chart shows the percentage distribution of five IMDb rating levels across six movie genres, with each bar segment colored by rating category. D3 v7 builds the visualization using `d3.stack()` for data stacking, `d3.scaleLinear` and `d3.scaleBand` for axes, and `d3.scaleOrdinal` for colors. Hovering over a segment reveals a tooltip displaying the precise percentage for that genre and rating level, while the SVG renders the chart with horizontal bars and labeled axes.
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.