Activity6_Task2 Q2.1
✓ Published0🌍 Public
A stacked horizontal bar chart displays the percentage of IMDb movie ratings across six genres, with five rating bands from "below 5.0" to "above 8.5." Each genre’s bar segments are color-coded by rating category, and hovering over a segment reveals its exact percentage via a tooltip. The visualization is built with D3 v7, using `d3.stack()` to compute the stacked data, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` for genre positioning on the y-axis. Data is loaded from a CSV file.
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.
MIT Licensed