Activity 6 _Task2
✓ Published0🌍 Public
This stacked bar chart shows the distribution of IMDb ratings across six movie genres, with each bar divided into five rating categories from "below 5.0" to "above 8.5" using percentage values loaded from a CSV file. The visualization uses d3.stack() to compute the stacked segments, d3.scaleOrdinal() for color mapping, and d3.scaleBand() and d3.scaleLinear() for the axes. Interactive tooltips appear on mouseover, displaying the percentage for each specific rating category within a genre, while semi-transparent highlighting emphasizes the hovered segment. The SVG rendering employs D3 v7 with custom styles for typography and tooltip formatting.
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.
MIT Licensed