🌍 Public
Viewing a saved revision (read-only)
8dcc03db46f548fc921d1445c737e442
Fork of task 8-part 2
This stacked bar chart visualizes the impact of movie genre on ratings, showing the percentage distribution across five rating levels for each genre in the dataset. The chart uses the D3 v7 library to process data with `d3.stack()` and render SVG rectangles, with hover interactions displaying exact percentages via a custom tooltip. Ratings are encoded as stacked segments on a linear x-axis, while genres are positioned on a band scale y-axis, with an ordinal color scale distinguishing rating categories.
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.