🌍 Public
Viewing a saved revision (read-only)
b4bfd0f846e0459d9919743369519771
Activity6_tutorial
This stacked bar chart displays the percentage distribution of IMDb ratings across six movie genres, with each genre's horizontal segments summing to 100%. Hovering over a segment reveals a tooltip with the exact percentage for that rating level. The visualization is built with D3 v7, using `d3.stack()` to create the stacked data, `d3.scaleOrdinal()` for color mapping, and SVG rectangles for rendering. The chart includes axes, titles, and an interactive tooltip that updates via mouse events.
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.