🌍 Public
Viewing a saved revision (read-only)
b3791a2dcd2449c7bf86b44b9c121be3
Activity Task 2
This visualization presents a stacked horizontal bar chart comparing the distribution of movie ratings by genre, using data from an IMDb dataset. Each bar segment represents a specific rating category, with the length of each segment corresponding to the proportion of ratings within that genre. The chart is rendered as an SVG using D3 v7, employing `d3.stack()` to create the stacked segments, `d3.scaleOrdinal()` for color assignment, and `d3.axisLeft`/`d3.axisBottom` for axes. Interactive tooltips appear on hover, displaying the exact percentage for each rating category.
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.