🌍 Public
Viewing a saved revision (read-only)
22c665bb359c4b4a98800d3e6eb82ac9
Activity6_Task2
This stacked bar chart shows the percentage of IMDb ratings within each movie genre, highlighting how rating distributions vary across Documentary, Drama, Comedy, Romance, Animation, and Action. Each genre’s horizontal bar is divided into five rating-level segments, with hover pop-ups displaying exact percentages. Built with d3.v7 and rendered as SVG, the visualization uses d3.stack() to compute stacked series, d3.scaleOrdinal for color encoding, d3.scaleBand for genres, and d3.scaleLinear for percentages. The data is loaded from a CSV file containing genre and rating-level proportions.
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.