Activity 6 Task 2
✓ Published0🌍 Public
A stacked horizontal bar chart compares the distribution of IMDb ratings across six movie genres, using percentages for five rating categories. The chart uses D3.js v7 APIs including `d3.stack`, `d3.scaleOrdinal`, `d3.scaleLinear`, `d3.scaleBand`, and `d3.axisLeft`. Each genre’s row shows proportional segments colored by rating category, with interactive tooltips revealing exact percentages. Data originates from a CSV file with pre-calculated proportions, rendered as SVG.
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