Activity6_Task2
✓ Published0🌍 Public
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the percentage of titles falling into five rating brackets from below 5.0 to above 8.5. The data is loaded from a CSV file and rendered as horizontal bars using D3 v7’s stack and scaleOrdinal APIs. The code employs d3.axisBottom, d3.scaleBand, and d3.scaleLinear for scaling and axes, with CSS-based tooltips providing interactive hover details for each genre and rating segment.
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