Activity_6 Task-2
✓ Published0🌍 Public
This example visualizes the distribution of IMDb movie ratings across six genres using a stacked horizontal bar chart. The chart shows the percentage of movies falling into five rating brackets, from "below 5.0" to "above 8.5", with each genre represented by a single bar divided into colored segments. The visualization loads data from a CSV file and uses D3 v7 APIs including `d3.stack`, `d3.scaleOrdinal`, `d3.scaleLinear`, and `d3.scaleBand` to compute stacking, assign colors, and position bars. Interactive tooltips display exact percentages on mouseover, implemented with D3 event handlers.
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