Activity - 6_Task - 2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of IMDb ratings across six film genres, with each bar divided into five rating categories from “below 5.0” to “above 8.5”. The visualization uses d3.stack() to create the stacked series and d3.scaleOrdinal with a custom color palette for the categories. D3 scaleBand and scaleLinear position the bars and axes, while mouseover events trigger a tooltip displaying the exact percentage for each segment. Data comes from a CSV file loaded and parsed by D3 v7.
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