🌍 Public
Viewing a saved revision (read-only)
077fa17d891b462a90de2247e498b4c8
Activity6_Task2
This stacked bar chart visualizes IMDb movie rating distributions across six genres, with each bar segment representing the percentage of movies falling into rating brackets from below 5.0 to above 8.5. The chart uses D3 v7’s `d3.stack()` to create the stacked layout, `d3.scaleBand()` for the genre axis, and `d3.scaleOrdinal()` with a custom color palette. Interactive tooltips appear on mouseover to display exact percentage values, formatted using `d3.format()`. The visualization is rendered as an SVG, with margins, axis labels, and styling defined via external CSS.
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.