🌍 Public
Viewing a saved revision (read-only)
49344cbdc6da4612be7100b5d005b17a
Activity 6_Task2
This stacked bar chart displays the distribution of IMDb ratings across six movie genres, with each genre represented as a horizontal bar divided into five rating range segments from below 5.0 to above 8.5. The visualization uses D3 v7’s `d3.stack()` and `d3.scaleBand()` to structure the data, with `d3.scaleOrdinal()` assigning colors to rating categories. Interactive tooltips reveal the exact percentage for each segment via mouse events, while axes and labels are rendered using `d3.axisBottom` and `d3.axisLeft`. The chart is drawn as an SVG element with data loaded from a CSV file.
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.