Viewing a saved revision (read-only)
2b205b51080f4730a3fe0dc779a91d9b
Activity 6_Task 2
This stacked bar chart shows the percentage distribution of IMDb movie ratings across six genres—Documentary, Drama, Comedy, Romance, Animation, and Action—with each bar segmented into five rating levels from "below 5.0" to "above 8.5". The visualization makes the impact of genre on ratings immediately apparent; for instance, Action films have a high proportion of low ratings, while Documentaries skew toward higher scores. Built with D3 v7 and rendered as SVG, the chart uses `d3.stack()` to create the stacked segments, `d3.scaleOrdinal()` for color encoding, and `d3.scaleLinear()` for the percentage axis. Interactive tooltips appear on mouseover, displaying the exact percentage for each rating level within a genre, computed from the CSV data source.
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.