Acitivty6_Task2
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, using a divergent color palette for five rating categories from "below 5.0" to "above 8.5." The chart employs D3 v7's `d3.stack()` function to transform the dataset into stacked segments, with `d3.scaleOrdinal()` mapping categories to colors. Each genre row uses horizontal bars to show proportional percentages, and an interactive tooltip displays exact values on mouseover. The data originates from the included `data.csv` file.
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