Activity-6_Task-2
✓ Published1🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart displays the proportion of movies within five rating brackets, from below 5.0 to above 8.5, for each genre, with a tooltip revealing exact percentages on hover. Built with D3 v7, the code utilizes `d3.stack()` to compute stacked series, `d3.scaleOrdinal()` for color mapping, and `d3.scaleBand()` and `d3.scaleLinear()` for positioning. Data is loaded from an external CSV file, and the visualization renders as SVG with interactive mouse events.
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