🌍 Public
Viewing a saved revision (read-only)
20c4add32e6d43bda49e577185195664
Activity_Task2
This stacked bar chart visualizes the impact of movie genre on IMDb ratings, displaying the percentage distribution of ratings across five categories (below 5.0 to above 8.5) for six genres. Using D3.js v7, the chart employs `d3.stack()` to create stacked bars and `d3.scaleBand()` for the genre axis. Interactive tooltips provide precise percentages on hover, with data sourced from a CSV file. The SVG rendering uses `d3.axisBottom()` and `d3.axisLeft()` for axes, while mouseover events trigger opacity changes and detailed pop-ups.
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.