🌍 Public
Viewing a saved revision (read-only)
ff3abab0f4474b6c9133450ee24bdb66
tutorial2
This stacked bar chart from the IMDb movie ratings dataset shows the percentage breakdown of rating categories within each genre, such as Documentary, Drama, and Action. It reveals how genres like Documentaries skew toward higher ratings while Action films cluster at lower scores. Built with D3 v7, the visualization uses `d3.stack()` and `d3.scaleOrdinal()` with a diverging color scheme. A custom tooltip tracks the mouse position via `event.pageX` and `event.pageY`, displaying the precise percentage for each segment on hover.
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.