Activity-6 Q3
✓ Published0🌍 Public
This visualization shows a horizontal stacked bar chart comparing manga readership across five age groups, breaking down readers into Action and Romance genre categories. The code uses D3 v7’s `d3.stack()`, `scaleLinear`, `scaleBand`, and `scaleOrdinal` with a custom color palette to render the SVG. Interactive tooltips appear on mouseover, displaying the specific genre reader count for each segment. The chart includes axis labels, a title, and a legend, with data loaded from a local CSV file via D3’s data-binding methods.
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