🌍 Public
Viewing a saved revision (read-only)
08b906b1fdc046a78c244a6da8f0bb14
Activity6_Tutorial2_Rashmitha
This stacked bar chart shows the percentage of movies in five rating categories across six genres, highlighting how genre influences IMDb ratings. The horizontal bars use color-coded segments to represent the proportion of ratings, while hovering reveals precise percentages via tooltips. Built with D3 v7, the visualization uses `d3.stack()` for data transformation, `d3.scaleOrdinal` for colors, and `d3.scaleBand` for the categorical axis, rendering as SVG with interactive mouse events for detail-on-demand.
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.