🌍 Public
Viewing a saved revision (read-only)
4c9f5afd16fb48698a66d0e42fb559ab
activity_6_2
This stacked bar chart visualizes the distribution of IMDb ratings across six movie genres, with each bar divided into five rating brackets from below 5.0 to above 8.5. The horizontal bars show proportions for each genre, enabling quick comparison of rating patterns. The visualization uses d3.stack() to compute stacked segments, d3.scaleLinear and d3.scaleBand for positioning, and ordinal color scaling. Interactive tooltips appear on mouseover, displaying exact percentages formatted with d3.format. The data originates from a CSV file containing rating proportions per genre.
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.