🌍 Public
Viewing a saved revision (read-only)
4db5131a988a412189e93f574d8f92a7
Activity6_Q2.3
This stacked bar chart displays the percentage distribution of IMDb rating levels (below 5.0 to above 8.5) across six movie genres. The horizontal bars show proportions totaling 100% for each genre, with hover interactions triggering tooltips that reveal exact percentages per rating category. Using D3 v7's `d3.stack()` and `scaleOrdinal`, the visualization renders SVG rectangles with color-coded segments. The data from `data.csv` is mapped to a linear x-scale and band y-scale, while the legend and axis labels clarify the rating groups and percentage values.
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.