Activity6_Task2_Poorna
This example visualizes the distribution of IMDb movie ratings across six genres, using a stacked horizontal bar chart where each bar segment represents the percentage of titles within rating ranges from below 5.0 to above 8.5. The chart displays genre names on the y-axis and percentage values on the x-axis, with colors distinguishing each rating category. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked data, `d3.scaleOrdinal` for categorical colors, and `d3.scaleBand` and `d3.scaleLinear` for positioning. Interactive tooltips appear on mouseover to show precise percentage values for each genre and rating combination. The data comes from a local CSV file loaded asynchronously.
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.