🌍 Public
Viewing a saved revision (read-only)
b86f339a7ad74f9e95c98ab2c446301e
Activity6_Task2
A stacked bar chart visualizes the percentage distribution of IMDb rating categories across six movie genres, showing how genres such as Documentary and Action differ in rating outcomes. Each bar segment represents a rating level, with hover interactions displaying exact percentages via a tooltip. The visualization uses D3 v7’s `d3.stack`, `scaleBand`, and `scaleLinear` APIs to generate SVG rectangles in a stacked layout, with data loaded from a CSV file. A color scale encodes the rating categories, and axes are rendered using `d3.axisBottom` and `d3.axisLeft`.
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.