🌍 Public
Viewing a saved revision (read-only)
615f38c545c2466697a6ecbfb96ff6e7
Activity 6_Question 2
This stacked bar chart visualizes the distribution of movie ratings across six genres, using data from a CSV file. The chart shows the proportion of films falling into rating bands from "Below 5.0" to "Above 8.5" for each genre, with colors distinguishing the rating categories. Built with D3.js version 7, the visualization uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal` for color mapping. Hovering over any segment reveals an exact percentage via a tooltip, implemented with D3's mouseover events.
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.