🌍 Public
Viewing a saved revision (read-only)
069cd5fc1dea45ffbf78bc89554dc57a
Activity6_Task2
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, showing the proportion of films in each rating category from "below 5.0" to "above 8.5". The y-axis lists genres, while the x-axis represents the percentage of each rating level, with color-coded segments per category. Interactive tooltips, implemented with D3's `d3.axisBottom`, `d3.scaleOrdinal`, and `d3.stack`, display precise percentages on hover, with bars using `d3.select` and mouse events to trigger opacity changes and tooltip updates. The visualization uses SVG rendering within an HTML canvas.
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.