Activity6_task2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of IMDb movie ratings across six genres, with each bar segment representing the percentage of films falling into one of five rating brackets. The visualization uses d3.stack() to compute the stacking layout, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the percentage x-axis. Interactive tooltips display the exact percentage for each genre-rating combination on mouseover. The data is loaded from a CSV file and rendered as SVG elements with an ordinal color scale.
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