🌍 Public
Viewing a saved revision (read-only)
a70266f579e9473da0bb0bbfdd1433c9
Activity_6_question3
A stacked horizontal bar chart displays the percentage distribution of IMDb ratings across different genres, using a percentage scale from 0 to 1. The visualization utilizes D3.js v7, loading the library from UNPKG, and renders as an SVG. It employs `d3.stack` and `d3.scaleBand` to create the segmented bars, with a custom tooltip showing exact percentages on mouseover. The code also uses `d3.axisBottom` and `d3.axisLeft` for axes, and includes a color scale for genre 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.