🌍 Public
Viewing a saved revision (read-only)
a4707d3d1ef74bcebc92f79b4f25d2c4
Activity6_Task2
This stacked bar chart visualizes the impact of movie genre on IMDb rating distributions, showing the percentage of films within five rating bands across six genres. Hovering over any segment triggers a tooltip displaying the exact percentage value. The visualization uses d3.stack() to compute the stacked layout, d3.scaleBand for the categorical y-axis, d3.scaleLinear for the percentage x-axis, and d3.scaleOrdinal with a custom color palette. Data is loaded from a CSV file and rendered as SVG rectangles with mouse event listeners for interactivity.
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.