Viewing a saved revision (read-only)
6052258a798c40faa2d6703843f1db67
Activiry6_Task2
This stacked bar chart shows the percentage distribution of IMDb ratings across six movie genres. The horizontal bars are segmented into five rating categories, from "below 5.0" to "above 8.5", with each genre’s total summing to 100%. The visualization reveals how different genres skew toward higher or lower ratings. The chart is rendered as an SVG using D3 v7. The code uses `d3.stack()` to create the stacked segments and `d3.scaleOrdinal` for color mapping. Interactive tooltips appear on mouseover, displaying the precise percentage for each rating segment. The data comes from a CSV file containing genre and rating percentage columns.
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.