Viewing a saved revision (read-only)
504aebee286a4d3db9400686dfd973a7
Activity6_Task6
This visualization uses stacked horizontal bar charts to display the distribution of IMDb movie ratings across different genres. Each bar segment represents the percentage of movies within a specific rating range (below 5.0 through above 8.5), with the full bar showing the complete proportional breakdown for each genre. The chart is rendered as SVG using D3 v7, where `d3.scaleOrdinal` assigns colors to rating categories and `d3.stack()` computes the stacked segments. Mouse interactions trigger a tooltip that displays the exact percentage for each rating category. The data comes from a CSV file specifying genre and rating fractions.
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.