activity6_task2
✓ Published1🌍 Public
This example shows the distribution of IMDb movie ratings across different genres as a stacked horizontal bar chart, where each bar segment represents the percentage of movies within a rating range. The chart uses D3 v7 to load the data, build stacked bars with the `d3.stack` layout, and apply ordinal color scales. It includes interactive tooltips that appear on hover to display the exact percentage for each rating category, along with custom axis labels and styling defined in the accompanying CSS. The data comes from a CSV file with six genres and five rating brackets.
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