Activity 8 Task 2
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb movie ratings across six genres, breaking down the percentage of films into five rating categories from "below 5.0" to "above 8.5". The horizontal bars are segmented by rating band using distinct colors from a custom scale, with genre labels on the y-axis and a numerical percentage scale on the x-axis. The visualization is rendered using D3.js v7, leveraging `d3.stack`, `d3.scaleBand`, and `d3.scaleLinear` to construct the chart, and includes interactive tooltips that display the exact percentage for each genre-rating segment on mouseover.
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