Activity6_Task2.1
✓ Published0🌍 Public
This example visualizes IMDb movie ratings across six genres using a stacked horizontal bar chart, showing the percentage distribution of ratings across five score categories from below 5.0 to above 8.5. The chart uses D3 v7's `d3.stack()` to compute stacked series and `d3.scaleOrdinal` with a custom color palette to distinguish rating categories. Interactive tooltips appear on mouseover using D3 event handlers, displaying the exact percentage for each genre and rating segment. The data is loaded from a CSV file and rendered as SVG elements within a 960x500 viewport.
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