🌍 Public
Viewing a saved revision (read-only)
347bfff2330f4ba791593588653c0bed
Activity6_task2
A stacked bar chart visualizes the impact of movie genre on IMDb ratings, with each bar showing the proportion of films across five rating bands from “below 5.0” to “above 8.5.” The chart makes it clear that documentaries skew toward higher ratings, while action films cluster at the lower end. Built with D3 v7, the visualization uses `d3.stack()` to compute the stacked segments and `d3.scaleBand` for the categorical genre axis. Hovering over a segment triggers a tooltip that displays the exact percentage for that rating level within the genre. Data comes from a CSV file loaded with D3’s data handling methods.
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.